From: Timo Sirainen Date: Wed, 19 Nov 2008 17:04:55 +0000 (+0200) Subject: acl: Save the entire dovecot-acl-list to memory, otherwise "has visible children... X-Git-Tag: 1.2.alpha4~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44fda09101a94883f45b8a6214628e541550cebc;p=thirdparty%2Fdovecot%2Fcore.git acl: Save the entire dovecot-acl-list to memory, otherwise "has visible children" check fails. --HG-- branch : HEAD --- diff --git a/src/plugins/acl/acl-mailbox-list.c b/src/plugins/acl/acl-mailbox-list.c index c45447416f..7acd495cc4 100644 --- a/src/plugins/acl/acl-mailbox-list.c +++ b/src/plugins/acl/acl-mailbox-list.c @@ -91,7 +91,10 @@ acl_mailbox_try_list_fast(struct acl_mailbox_list_iterate_context *ctx) memset(&update_ctx, 0, sizeof(update_ctx)); update_ctx.iter_ctx = &ctx->ctx; - update_ctx.glob = ctx->glob; + update_ctx.glob = + imap_match_init(pool_datastack_create(), "*", + (ns->flags & NAMESPACE_FLAG_INBOX) != 0, + ctx->sep); update_ctx.match_parents = TRUE; update_ctx.tree_ctx = mailbox_tree_init(ctx->sep);