ctx->ctx.flags = flags;
ctx->ctx.glob = imap_match_init_multiple(pool, patterns, TRUE, ns_sep);
array_create(&ctx->ctx.module_contexts, pool, sizeof(void *), 5);
- ctx->sep = ns_sep;
ctx->info_pool = pool_alloconly_create("mailbox list index iter info", 128);
if (!iter_use_index(ctx)) {
p_clear(ctx->info_pool);
str_truncate(ctx->path, ctx->parent_len);
- if (str_len(ctx->path) > 0)
- str_append_c(ctx->path, ctx->sep);
+ if (str_len(ctx->path) > 0) {
+ str_append_c(ctx->path,
+ mailbox_list_get_hierarchy_sep(ctx->ctx.list));
+ }
str_append(ctx->path, node->name);
ctx->info.vname = mailbox_list_get_vname(ctx->ctx.list, str_c(ctx->path));