dovecot-2.2: lib-storage: Fixed up previous subscription list ch...

dovecot at dovecot.org dovecot at dovecot.org
Mon Feb 25 20:10:06 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/c8fc02c88cf6
changeset: 15963:c8fc02c88cf6
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 25 20:09:52 2013 +0200
description:
lib-storage: Fixed up previous subscription list change.

diffstat:

 src/lib-storage/list/mailbox-list-subscriptions.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r effecdd32cb0 -r c8fc02c88cf6 src/lib-storage/list/mailbox-list-subscriptions.c
--- a/src/lib-storage/list/mailbox-list-subscriptions.c	Mon Feb 25 20:04:10 2013 +0200
+++ b/src/lib-storage/list/mailbox-list-subscriptions.c	Mon Feb 25 20:09:52 2013 +0200
@@ -45,7 +45,8 @@
 	}
 	ns = mail_namespace_find_unsubscribable(namespaces, ns_name);
 	if (ns != NULL && ns != default_ns) {
-		if (ns->prefix_len > default_ns->prefix_len)
+		if (ns->prefix_len > default_ns->prefix_len ||
+		    strncmp(ns->prefix, default_ns->prefix, ns->prefix_len) != 0)
 			return 0;
 		ns = default_ns;
 	}


More information about the dovecot-cvs mailing list