changeset 8216:11ff5d768660 HEAD

mbox: Give an error if trying to use "mbox:INBOX=.." as mail location.
author Timo Sirainen <tss@iki.fi>
date Tue, 23 Sep 2008 19:58:07 +0300
parents c0888db40086
children c47b78e843aa
files src/lib-storage/index/mbox/mbox-storage.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 				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,