Skip to content

Commit

Permalink
mbox: Enable .imap/ index directories with all layouts
Browse files Browse the repository at this point in the history
LAYOUT=fs isn't any special here. The mboxes are created as files just the same
for LAYOUT=Maildir++ and for LAYOUT=index and it's not possible to create index
files under them.
  • Loading branch information
sirainen authored and cmouse committed Mar 1, 2018
1 parent bfaf911 commit f2646a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib-storage/index/mbox/mbox-storage.c
Expand Up @@ -714,8 +714,7 @@ static void mbox_storage_add_list(struct mail_storage *storage,
mlist->module_ctx.super = list->v;
mlist->set = mail_namespace_get_driver_settings(list->ns, storage);

if (strcmp(list->name, MAILBOX_LIST_NAME_FS) == 0 &&
*list->set.maildir_name == '\0') {
if (*list->set.maildir_name == '\0') {
/* have to use .imap/ directories */
list->v.get_path = mbox_list_get_path;
}
Expand Down

0 comments on commit f2646a1

Please sign in to comment.