dovecot-2.2: lib-storage: Fixed listing subscriptions for namesp...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 25 19:52:47 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/e47910ee4459
changeset: 15961:e47910ee4459
user: Timo Sirainen <tss at iki.fi>
date: Mon Feb 25 19:52:40 2013 +0200
description:
lib-storage: Fixed listing subscriptions for namespaces with prefix.
diffstat:
src/lib-storage/list/mailbox-list-subscriptions.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 1ad404473d81 -r e47910ee4459 src/lib-storage/list/mailbox-list-subscriptions.c
--- a/src/lib-storage/list/mailbox-list-subscriptions.c Mon Feb 25 19:37:53 2013 +0200
+++ b/src/lib-storage/list/mailbox-list-subscriptions.c Mon Feb 25 19:52:40 2013 +0200
@@ -44,8 +44,11 @@
ns_name = t_strconcat(src_list->ns->prefix, name, NULL);
}
ns = mail_namespace_find_unsubscribable(namespaces, ns_name);
- if (ns != NULL && ns != default_ns)
- return 0;
+ if (ns != NULL && ns != default_ns) {
+ if (ns->prefix_len > default_ns->prefix_len)
+ return 0;
+ ns = default_ns;
+ }
/* 2) when listing pub/ namespace, skip over entries that don't
begin with pub/. */
More information about the dovecot-cvs
mailing list