dovecot-1.2: acl: Use MAIL_STORAGE_FLAG_IGNORE_ACLS flag.

dovecot at dovecot.org dovecot at dovecot.org
Sun Nov 16 14:43:18 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/65d005f2c28b
changeset: 8425:65d005f2c28b
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Nov 16 14:40:56 2008 +0200
description:
acl: Use MAIL_STORAGE_FLAG_IGNORE_ACLS flag.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/plugins/acl/acl-storage.c |    4 +++-

diffs (14 lines):

diff -r e758515bbbbf -r 65d005f2c28b src/plugins/acl/acl-storage.c
--- a/src/plugins/acl/acl-storage.c	Sun Nov 16 14:33:11 2008 +0200
+++ b/src/plugins/acl/acl-storage.c	Sun Nov 16 14:40:56 2008 +0200
@@ -99,7 +99,9 @@ acl_mailbox_open(struct mail_storage *st
 	int ret;
 
 	/* mailbox can be opened either for reading or appending new messages */
-	if ((flags & MAILBOX_OPEN_SAVEONLY) != 0) {
+	if ((flags & MAIL_STORAGE_FLAG_IGNORE_ACLS) != 0) {
+		ret = 1;
+	} else if ((flags & MAILBOX_OPEN_SAVEONLY) != 0) {
 		ret = acl_storage_have_right(storage, name,
 					     ACL_STORAGE_RIGHT_INSERT,
 					     &can_see);


More information about the dovecot-cvs mailing list