dovecot-1.2: namespace list=children: Fail if namespace prefix d...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jan 19 15:45:20 EET 2010


details:   http://hg.dovecot.org/dovecot-1.2/rev/64b8fe0024ba
changeset: 9525:64b8fe0024ba
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jan 19 15:45:07 2010 +0200
description:
namespace list=children: Fail if namespace prefix doesn't end with separator.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/mail-namespace.c |    3 ++-

diffs (13 lines):

diff -r e2ea80e1c239 -r 64b8fe0024ba src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c	Sat Jan 02 12:01:09 2010 -0500
+++ b/src/lib-storage/mail-namespace.c	Tue Jan 19 15:45:07 2010 +0200
@@ -151,7 +151,8 @@ static bool namespaces_check(struct mail
 			inbox_ns = ns;
 		}
 		if (*ns->prefix != '\0' &&
-		    (ns->flags & NAMESPACE_FLAG_LIST_PREFIX) != 0 &&
+		    (ns->flags & (NAMESPACE_FLAG_LIST_PREFIX |
+				  NAMESPACE_FLAG_LIST_CHILDREN)) != 0 &&
 		    ns->prefix[strlen(ns->prefix)-1] != ns->sep) {
 			i_error("namespace configuration error: "
 				"list=yes requires prefix=%s "


More information about the dovecot-cvs mailing list