dovecot: Give an error if trying to use list=no and empty prefix.

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 6 02:48:11 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/dea6ed0002ae
changeset: 6534:dea6ed0002ae
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 06 02:48:07 2007 +0300
description:
Give an error if trying to use list=no and empty prefix.

diffstat:

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

diffs (16 lines):

diff -r 6c96c8205fd0 -r dea6ed0002ae src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c	Sat Oct 06 02:47:10 2007 +0300
+++ b/src/lib-storage/mail-namespace.c	Sat Oct 06 02:48:07 2007 +0300
@@ -120,6 +120,12 @@ static bool namespaces_check(struct mail
 					"the same separator");
 				return FALSE;
 			}
+		}
+		if (*ns->prefix == '\0' &&
+		    (ns->flags & NAMESPACE_FLAG_LIST) == 0) {
+			i_error("namespace configuration error: "
+				"Empty prefix requires list=yes");
+			return FALSE;
 		}
 	}
 


More information about the dovecot-cvs mailing list