dovecot-1.1: trash plugin: Crashfix for some namespace configura...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 18 15:23:59 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/b73eb7134937
changeset: 7945:b73eb7134937
user: Timo Sirainen <tss at iki.fi>
date: Sat Oct 18 15:23:54 2008 +0300
description:
trash plugin: Crashfix for some namespace configurations.
diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
src/plugins/trash/trash-plugin.c | 6 +++++-
diffs (19 lines):
diff -r b6605966e4ec -r b73eb7134937 src/plugins/trash/trash-plugin.c
--- a/src/plugins/trash/trash-plugin.c Sat Oct 18 14:54:06 2008 +0300
+++ b/src/plugins/trash/trash-plugin.c Sat Oct 18 15:23:54 2008 +0300
@@ -89,10 +89,14 @@ static void trash_find_storage(struct tr
{
struct mail_storage *const *storages;
unsigned int i, count;
+ const char *name;
storages = array_get("a_set->storages, &count);
for (i = 0; i < count; i++) {
- if (mail_namespace_update_name(storages[i]->ns, &trash->name)) {
+ name = trash->name;
+ if (mail_namespace_update_name(storages[i]->ns, &name)) {
+ if (name != trash->name)
+ trash->name = p_strdup(config_pool, name);
trash->storage = storages[i];
return;
}
More information about the dovecot-cvs
mailing list