dovecot-1.2: mbox: Give an error if trying to use "mbox:INBOX=.....
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 23 19:58:11 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/11ff5d768660
changeset: 8216:11ff5d768660
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 23 19:58:07 2008 +0300
description:
mbox: Give an error if trying to use "mbox:INBOX=.." as mail location.
diffstat:
1 file changed, 4 insertions(+)
src/lib-storage/index/mbox/mbox-storage.c | 4 ++++
diffs (14 lines):
diff -r c0888db40086 -r 11ff5d768660 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c Mon Sep 22 23:50:38 2008 +0300
+++ b/src/lib-storage/index/mbox/mbox-storage.c Tue Sep 23 19:58:07 2008 +0300
@@ -319,6 +319,10 @@ mbox_get_list_settings(struct mailbox_li
list_set->root_dir = get_root_dir(storage);
list_set->inbox_path = data;
}
+ } else if (strncmp(data, "INBOX=", 6) == 0) {
+ /* the most common misconfiguration */
+ *error_r = "Root mail directory not given";
+ return -1;
} else {
if (mailbox_list_settings_parse(data, list_set,
storage->ns,
More information about the dovecot-cvs
mailing list