dovecot-1.2: Shared mailboxes: First mailbox access failed if vi...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Oct 8 22:10:03 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/c465b10a76fd
changeset: 8254:c465b10a76fd
user: Timo Sirainen <tss at iki.fi>
date: Wed Oct 08 22:09:59 2008 +0300
description:
Shared mailboxes: First mailbox access failed if virtual separator didn't match real separator.
diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
src/lib-storage/index/shared/shared-storage.c | 5 +++--
diffs (29 lines):
diff -r c9b9b551eb3f -r c465b10a76fd src/lib-storage/index/shared/shared-storage.c
--- a/src/lib-storage/index/shared/shared-storage.c Mon Oct 06 22:07:23 2008 +0300
+++ b/src/lib-storage/index/shared/shared-storage.c Wed Oct 08 22:09:59 2008 +0300
@@ -171,7 +171,7 @@ int shared_storage_get_namespace(struct
ns = mail_namespace_find_prefix(user->namespaces, str_c(prefix));
if (ns != NULL) {
- *_name = name;
+ *_name = mail_namespace_fix_sep(ns, name);
*ns_r = ns;
return 0;
}
@@ -182,6 +182,7 @@ int shared_storage_get_namespace(struct
ns->user = user;
ns->prefix = p_strdup(user->pool, str_c(prefix));
ns->flags = NAMESPACE_FLAG_LIST | NAMESPACE_FLAG_HIDDEN;
+ ns->sep = _storage->ns->sep;
location = t_str_new(256);
var_expand(location, storage->location, tab);
@@ -194,7 +195,7 @@ int shared_storage_get_namespace(struct
mailboxes. otherwise the memory usage could just keep growing. */
mail_user_add_namespace(user, ns);
- *_name = name;
+ *_name = mail_namespace_fix_sep(ns, name);
*ns_r = ns;
return 0;
}
More information about the dovecot-cvs
mailing list