dovecot-1.2: When accessing a shared namespace, don't change sep...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 22 05:48:58 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/c4ac007d4e0b
changeset: 9145:c4ac007d4e0b
user: Timo Sirainen <tss at iki.fi>
date: Sun Jun 21 22:48:50 2009 -0400
description:
When accessing a shared namespace, don't change separators in mailbox name.
diffstat:
1 file changed, 6 insertions(+)
src/lib-storage/mail-namespace.c | 6 ++++++
diffs (16 lines):
diff -r a0fcbb79ef66 -r c4ac007d4e0b src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c Sun Jun 21 22:26:58 2009 -0400
+++ b/src/lib-storage/mail-namespace.c Sun Jun 21 22:48:50 2009 -0400
@@ -328,6 +328,12 @@ const char *mail_namespace_fix_sep(struc
if (ns->sep == ns->real_sep)
return name;
+ if (ns->type == NAMESPACE_SHARED &&
+ (ns->flags & NAMESPACE_FLAG_AUTOCREATED) == 0) {
+ /* shared namespace root. the backend storage's hierarchy
+ separator isn't known yet, so do nothing. */
+ return name;
+ }
ret = p_strdup(unsafe_data_stack_pool, name);
for (p = ret; *p != '\0'; p++) {
More information about the dovecot-cvs
mailing list