From 6a94e092ea00c2c253eb4f3b519b9668e7477777 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 16 Nov 2008 14:40:56 +0200 Subject: [PATCH] acl: Use MAIL_STORAGE_FLAG_IGNORE_ACLS flag. --HG-- branch : HEAD --- src/plugins/acl/acl-storage.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.47.3