]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: imapc_list_get_fs() - Set index_pvt_dir for mailbox_list_settings
authorMarkus Valentin <markus.valentin@open-xchange.com>
Wed, 24 Mar 2021 08:43:17 +0000 (09:43 +0100)
committermarkus.valentin <markus.valentin@open-xchange.com>
Wed, 31 Mar 2021 09:12:29 +0000 (09:12 +0000)
To allow using private indexes with imapc storage the index_pvt_dir must
be set when listing the mailbox. Previously this did not happen because
the index_pvt_dir was simply NULL, now the value is copied from the
imapc_mailbox_list.

src/lib-storage/index/imapc/imapc-list.c

index 08843e4d2accdde1fead1abe7339bbb293c6173f..0fbadd83d856215df9c8eefcbcd721d087cd9771 100644 (file)
@@ -430,6 +430,7 @@ static struct mailbox_list *imapc_list_get_fs(struct imapc_mailbox_list *list)
                mailbox_list_settings_init_defaults(&list_set);
                list_set.layout = MAILBOX_LIST_NAME_MAILDIRPLUSPLUS;
                list_set.root_dir = dir;
+               list_set.index_pvt_dir = p_strdup_empty(list->list.pool, list->list.set.index_pvt_dir);
                /* Filesystem needs to be able to store any kind of a mailbox
                   name. */
                list_set.storage_name_escape_char =