]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: Enable .imap/ index directories with all layouts
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 17 Feb 2018 20:59:23 +0000 (22:59 +0200)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Thu, 1 Mar 2018 11:47:10 +0000 (13:47 +0200)
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.

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

index 7f60907fa2d7f959bfbcdf6692fa07ad9cad1ccb..2a9ab4de2a8e9379c58718e6fbddac226cfa1831 100644 (file)
@@ -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;
        }