It's not really needed, since anything that needs it will automatically
mkdir it later as well. This also breaks using LAYOUT=index with mbox,
because the mbox code hasn't yet had a chance to override the index root
path so it was mkdired without the .imap/ suffix.
static int index_list_init(struct mailbox_list *_list, const char **error_r)
{
- const char *dir;
-
if (!_list->mail_set->mailbox_list_index) {
*error_r = "LAYOUT=index requires mailbox_list_index=yes";
return -1;
}
- if (mailbox_list_get_root_path(_list, MAILBOX_LIST_PATH_TYPE_INDEX, &dir) &&
- mailbox_list_mkdir_root(_list, dir, MAILBOX_LIST_PATH_TYPE_INDEX) < 0) {
- *error_r = t_strdup_printf("Failed to create the index root directory: %s",
- mailbox_list_get_last_internal_error(_list, NULL));
- return -1;
- }
return 0;
}