dovecot-2.1: lib-storage: Fixed listing subscriptions in shared ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Sep 15 12:21:07 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/309a707c22c0
changeset: 13463:309a707c22c0
user: Timo Sirainen <tss at iki.fi>
date: Thu Sep 15 12:20:55 2011 +0300
description:
lib-storage: Fixed listing subscriptions in shared namespaces.
diffstat:
src/lib-storage/list/mailbox-list-subscriptions.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 667f604e79c5 -r 309a707c22c0 src/lib-storage/list/mailbox-list-subscriptions.c
--- a/src/lib-storage/list/mailbox-list-subscriptions.c Tue Sep 13 12:42:30 2011 +0300
+++ b/src/lib-storage/list/mailbox-list-subscriptions.c Thu Sep 15 12:20:55 2011 +0300
@@ -26,7 +26,7 @@
struct mail_namespace *ns, *default_ns = list->ns;
struct mail_namespace *namespaces = default_ns->user->namespaces;
struct mailbox_node *node;
- const char *vname, *ns_name;
+ const char *vname, *ns_name, *list_name;
unsigned int len;
bool created;
@@ -60,7 +60,8 @@
/* we'll need to get the namespace autocreated.
one easy way is to just ask if a mailbox name under
it is valid, and it gets created */
- (void)mailbox_list_is_valid_existing_name(list, name);
+ list_name = ns_name + ns->prefix_len;
+ (void)mailbox_list_is_valid_existing_name(list, list_name);
ns = mail_namespace_find_unsubscribable(namespaces, ns_name);
i_assert(ns != NULL &&
(ns->flags & NAMESPACE_FLAG_AUTOCREATED) != 0);
More information about the dovecot-cvs
mailing list