dovecot-2.0: dsync: Avoid assert-crashing when trying to create ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Sep 23 18:40:45 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/4a753371ae73
changeset: 12157:4a753371ae73
user: Timo Sirainen <tss at iki.fi>
date: Thu Sep 23 16:40:42 2010 +0100
description:
dsync: Avoid assert-crashing when trying to create a reserved mailbox name (e.g. dbox-Mails)
diffstat:
src/dsync/dsync-worker-local.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r c24206d083e8 -r 4a753371ae73 src/dsync/dsync-worker-local.c
--- a/src/dsync/dsync-worker-local.c Thu Sep 23 16:36:00 2010 +0100
+++ b/src/dsync/dsync-worker-local.c Thu Sep 23 16:40:42 2010 +0100
@@ -1097,6 +1097,11 @@
name = mailbox_name_force_cleanup(name,
worker->alt_char);
}
+ if (!mailbox_list_is_valid_create_name(ns->list, name)) {
+ /* probably some reserved name (e.g. dbox-Mails) */
+ name = t_strconcat("_", name, NULL);
+ }
+ i_assert(mailbox_list_is_valid_create_name(ns->list, name));
}
return name;
}
More information about the dovecot-cvs
mailing list