dovecot-2.2: namespace { prefix="" list=no } should never be lis...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 6 15:05:09 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/e45bb6b86e3c
changeset: 16329:e45bb6b86e3c
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 06 15:04:57 2013 +0300
description:
namespace { prefix="" list=no } should never be listed.

diffstat:

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

diffs (13 lines):

diff -r 714dfc072d60 -r e45bb6b86e3c src/lib-storage/list/mailbox-list-iter.c
--- a/src/lib-storage/list/mailbox-list-iter.c	Mon May 06 14:59:27 2013 +0300
+++ b/src/lib-storage/list/mailbox-list-iter.c	Mon May 06 15:04:57 2013 +0300
@@ -256,6 +256,9 @@
 		/* non-listable namespace matches only with exact prefix */
 		if (strncmp(ns->prefix, pattern, ns->prefix_len) != 0)
 			return FALSE;
+		/* prefix="" list=no is never listed */
+		if (ns->prefix_len == 0)
+			return FALSE;
 	}
 
 	prefix_without_sep = t_strndup(ns->prefix, len);


More information about the dovecot-cvs mailing list