From: Timo Sirainen Date: Tue, 23 Sep 2008 16:58:07 +0000 (+0300) Subject: mbox: Give an error if trying to use "mbox:INBOX=.." as mail location. X-Git-Tag: 1.2.alpha2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10f7fa4a408c43be03584463b584d1fbc070d0d3;p=thirdparty%2Fdovecot%2Fcore.git mbox: Give an error if trying to use "mbox:INBOX=.." as mail location. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/mbox/mbox-storage.c b/src/lib-storage/index/mbox/mbox-storage.c index 0ca1dd6e0a..9947c402ca 100644 --- a/src/lib-storage/index/mbox/mbox-storage.c +++ b/src/lib-storage/index/mbox/mbox-storage.c @@ -319,6 +319,10 @@ mbox_get_list_settings(struct mailbox_list_settings *list_set, 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,