dovecot-1.1: mbox: Give an error if trying to use "mbox:INBOX=.....
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 23 19:57:52 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/dca0beaf9c20
changeset: 7896:dca0beaf9c20
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 23 19:57:45 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 32206d4b6304 -r dca0beaf9c20 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c Mon Sep 22 23:50:25 2008 +0300
+++ b/src/lib-storage/index/mbox/mbox-storage.c Tue Sep 23 19:57:45 2008 +0300
@@ -317,6 +317,10 @@ mbox_get_list_settings(struct mailbox_li
list_set->root_dir = get_root_dir(flags);
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,
layout_r, NULL,
More information about the dovecot-cvs
mailing list