]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: Default INBOX=<root path>/inbox only with LAYOUT=fs
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 17 Feb 2018 21:19:29 +0000 (23:19 +0200)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Thu, 1 Mar 2018 11:47:10 +0000 (13:47 +0200)
It's likely not a valid path with other layouts.

src/lib-storage/index/mbox/mbox-storage.c

index 2a9ab4de2a8e9379c58718e6fbddac226cfa1831..b8c85ae40292aa8ce79a78ed471cf82696acf8d9 100644 (file)
@@ -183,7 +183,8 @@ static void mbox_storage_get_list_settings(const struct mail_namespace *ns,
        if (set->subscription_fname == NULL)
                set->subscription_fname = MBOX_SUBSCRIPTION_FILE_NAME;
 
-       if (set->inbox_path == NULL) {
+       if (set->inbox_path == NULL &&
+           strcasecmp(set->layout, MAILBOX_LIST_NAME_FS) == 0) {
                set->inbox_path = t_strconcat(set->root_dir, "/inbox", NULL);
                if (ns->mail_set->mail_debug)
                        i_debug("mbox: INBOX defaulted to %s", set->inbox_path);