dovecot-2.0: namespace list=children: Fail if namespace prefix d...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jan 19 15:45:21 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/907dc8769491
changeset: 10557:907dc8769491
user: Timo Sirainen <tss at iki.fi>
date: Tue Jan 19 15:45:14 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 e7f3a0e6e2a4 -r 907dc8769491 src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c Tue Jan 19 14:40:13 2010 +0200
+++ b/src/lib-storage/mail-namespace.c Tue Jan 19 15:45:14 2010 +0200
@@ -181,7 +181,8 @@ namespaces_check(struct mail_namespace *
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) {
*error_r = t_strdup_printf(
"namespace configuration error: "
More information about the dovecot-cvs
mailing list