Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8449:9dbb98d029e7 HEAD
acl: Save the entire dovecot-acl-list to memory, otherwise "has visible children" check fails.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 19 Nov 2008 19:04:55 +0200 |
parents | 4cf249042df6 |
children | f532e962f05d |
files | src/plugins/acl/acl-mailbox-list.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/acl/acl-mailbox-list.c Wed Nov 19 18:57:43 2008 +0200 +++ b/src/plugins/acl/acl-mailbox-list.c Wed Nov 19 19:04:55 2008 +0200 @@ -91,7 +91,10 @@ 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);