dovecot-2.0: Fixed handling non-default namespace separators.
dovecot at dovecot.org
dovecot at dovecot.org
Tue May 26 10:20:45 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/0b3225f7b3a6
changeset: 9382:0b3225f7b3a6
user: Timo Sirainen <tss at iki.fi>
date: Tue May 26 03:20:40 2009 -0400
description:
Fixed handling non-default namespace separators.
diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
src/lib-storage/mail-namespace.c | 5 ++---
diffs (29 lines):
diff -r 315a480f9942 -r 0b3225f7b3a6 src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c Tue May 26 03:15:59 2009 -0400
+++ b/src/lib-storage/mail-namespace.c Tue May 26 03:20:40 2009 -0400
@@ -18,6 +18,8 @@ void mail_namespace_init_storage(struct
ns->prefix_len = strlen(ns->prefix);
ns->real_sep = mailbox_list_get_hierarchy_sep(ns->list);
+ if (ns->set->separator != NULL)
+ ns->sep = *ns->set->separator;
if (ns->sep == '\0')
ns->sep = ns->real_sep;
@@ -132,8 +134,6 @@ namespace_add(struct mail_user *user,
mail_namespace_free(ns);
return -1;
}
- if (ns_set->separator != NULL)
- ns->sep = *ns_set->separator;
*ns_p = ns;
return 0;
@@ -287,7 +287,6 @@ int mail_namespaces_init(struct mail_use
return -1;
}
user->namespaces = ns;
- mail_namespace_init_storage(ns);
if (hook_mail_namespaces_created != NULL) {
T_BEGIN {
More information about the dovecot-cvs
mailing list