MAILBOX_LIST_ITER_RETURN_SUBSCRIBED)) != 0) {
char sep = mail_namespace_get_sep(list->ns);
ctx->subscriptions = mailbox_tree_init(sep);
- mailbox_list_subscriptions_fill(ctx, ctx->subscriptions, FALSE);
+ mailbox_list_subscriptions_fill(ctx, ctx->subscriptions);
struct mailbox_tree_iterate_context *iter =
mailbox_tree_iterate_init(ctx->subscriptions, NULL, 0);
}
void mailbox_list_subscriptions_fill(struct mailbox_list_iterate_context *ctx,
- struct mailbox_tree_context *tree,
- bool default_nonexistent)
+ struct mailbox_tree_context *tree)
{
struct mailbox_list_iter_update_context update_ctx;
struct mailbox_tree_iterate_context *iter;
update_ctx.tree_ctx = tree;
update_ctx.glob = ctx->glob;
update_ctx.leaf_flags = MAILBOX_SUBSCRIBED;
- if (default_nonexistent)
- update_ctx.leaf_flags |= MAILBOX_NONEXISTENT;
update_ctx.parent_flags = MAILBOX_CHILD_SUBSCRIBED;
update_ctx.match_parents =
(ctx->flags & MAILBOX_LIST_ITER_SELECT_RECURSIVEMATCH) != 0;
/* Add subscriptions matching the iteration to the given tree */
void mailbox_list_subscriptions_fill(struct mailbox_list_iterate_context *ctx,
- struct mailbox_tree_context *tree,
- bool default_nonexistent);
+ struct mailbox_tree_context *tree);
#endif