if (*path != '/') {
/* non-absolute path. add the mailbox root dir as prefix. */
enum mailbox_list_path_type type =
- ctx->ctx.list->set.iter_from_index_dir ?
+ ctx->ctx.iter_from_index_dir ?
MAILBOX_LIST_PATH_TYPE_INDEX :
MAILBOX_LIST_PATH_TYPE_MAILBOX;
if (!mailbox_list_get_root_path(ctx->ctx.list, type, &root))
return FALSE;
- if (ctx->ctx.list->set.iter_from_index_dir &&
+ if (ctx->ctx.iter_from_index_dir &&
ctx->ctx.list->set.mailbox_dir_name[0] != '\0') {
/* append "mailboxes/" to the index root */
root = t_strconcat(root, "/",
ctx->info_pool = pool_alloconly_create("fs list", 1024);
ctx->sep = mail_namespace_get_sep(_list->ns);
ctx->info.ns = _list->ns;
+ ctx->ctx.iter_from_index_dir = ctx->ctx.list->set.iter_from_index_dir;
if (!fs_list_get_valid_patterns(ctx, patterns)) {
/* we've only invalid patterns (or INBOX). create a glob
enum mailbox_list_iter_flags flags;
bool failed;
bool index_iteration;
+ bool iter_from_index_dir;
struct imap_match_glob *glob;
struct mailbox_list_autocreate_iterate_context *autocreate_ctx;