dovecot-2.0: When accessing a shared namespace, don't change sep...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 22 05:49:10 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/7bbae4008efd
changeset: 9498:7bbae4008efd
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 1769b18aea5b -r 7bbae4008efd src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c Sun Jun 21 22:21:38 2009 -0400
+++ b/src/lib-storage/mail-namespace.c Sun Jun 21 22:48:50 2009 -0400
@@ -371,6 +371,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