dovecot-1.2: acl: Save the entire dovecot-acl-list to memory, ot...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 19 19:04:59 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/9dbb98d029e7
changeset: 8449:9dbb98d029e7
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 19 19:04:55 2008 +0200
description:
acl: Save the entire dovecot-acl-list to memory, otherwise "has visible children" check fails.

diffstat:

1 file changed, 4 insertions(+), 1 deletion(-)
src/plugins/acl/acl-mailbox-list.c |    5 ++++-

diffs (15 lines):

diff -r 4cf249042df6 -r 9dbb98d029e7 src/plugins/acl/acl-mailbox-list.c
--- 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 @@ acl_mailbox_try_list_fast(struct acl_mai
 
 	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);
 


More information about the dovecot-cvs mailing list