Skip to content

Commit

Permalink
mbox: Default INBOX=<root path>/inbox only with LAYOUT=fs
Browse files Browse the repository at this point in the history
It's likely not a valid path with other layouts.
  • Loading branch information
sirainen authored and cmouse committed Mar 1, 2018
1 parent 0c53ce6 commit c853169
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib-storage/index/mbox/mbox-storage.c
Expand Up @@ -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);
Expand Down

0 comments on commit c853169

Please sign in to comment.