# HG changeset patch # User Timo Sirainen # Date 1222189087 -10800 # Node ID 11ff5d7686603d08e86404820e6dba01ee0a12d2 # Parent c0888db4008601793470a5b86e7869f05d6e9b00 mbox: Give an error if trying to use "mbox:INBOX=.." as mail location. 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 @@ 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,