From: Timo Sirainen Date: Sun, 16 Nov 2008 12:40:56 +0000 (+0200) Subject: acl: Use MAIL_STORAGE_FLAG_IGNORE_ACLS flag. X-Git-Tag: 1.2.alpha4~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a94e092ea00c2c253eb4f3b519b9668e7477777;p=thirdparty%2Fdovecot%2Fcore.git acl: Use MAIL_STORAGE_FLAG_IGNORE_ACLS flag. --HG-- branch : HEAD --- diff --git a/src/plugins/acl/acl-storage.c b/src/plugins/acl/acl-storage.c index 375bbaf90f..bc8fe167c5 100644 --- a/src/plugins/acl/acl-storage.c +++ b/src/plugins/acl/acl-storage.c @@ -99,7 +99,9 @@ acl_mailbox_open(struct mail_storage *storage, const char *name, 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);