]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
IGNORE_ACLS should have been mailbox_open_flags, not mail_storage_flag.
authorTimo Sirainen <tss@iki.fi>
Sun, 16 Nov 2008 13:02:57 +0000 (15:02 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 16 Nov 2008 13:02:57 +0000 (15:02 +0200)
--HG--
branch : HEAD

src/lib-storage/mail-storage.h
src/plugins/acl/acl-storage.c
src/plugins/imap-acl/imap-acl-plugin.c

index 5502c084e53a1f39778f3ddd98f1bd8bc1c996b7..21cedd44cde440b719489e076406f00fe8a6fd07 100644 (file)
@@ -39,9 +39,7 @@ enum mail_storage_flags {
        MAIL_STORAGE_FLAG_NFS_FLUSH_STORAGE     = 0x800,
        MAIL_STORAGE_FLAG_NFS_FLUSH_INDEX       = 0x1000,
        /* Don't use fsync() or fdatasync() */
-       MAIL_STORAGE_FLAG_FSYNC_DISABLE         = 0x2000,
-       /* Force opening mailbox and ignoring any ACLs */
-       MAIL_STORAGE_FLAG_IGNORE_ACLS           = 0x4000
+       MAIL_STORAGE_FLAG_FSYNC_DISABLE         = 0x2000
 };
 
 enum mailbox_open_flags {
@@ -60,7 +58,9 @@ enum mailbox_open_flags {
        MAILBOX_OPEN_KEEP_LOCKED        = 0x20,
        /* Enable if mailbox is used for serving POP3. This allows making
           better caching decisions. */
-       MAILBOX_OPEN_POP3_SESSION       = 0x40
+       MAILBOX_OPEN_POP3_SESSION       = 0x40,
+       /* Force opening mailbox and ignoring any ACLs */
+       MAILBOX_OPEN_IGNORE_ACLS        = 0x80
 };
 
 enum mailbox_feature {
index bc8fe167c529d6f1b76130b986b43aa1f35dbe18..2474535ab6e1e5d62dc2ba7abd26fae7944ab758 100644 (file)
@@ -99,7 +99,7 @@ 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 & MAIL_STORAGE_FLAG_IGNORE_ACLS) != 0) {
+       if ((flags & MAILBOX_OPEN_IGNORE_ACLS) != 0) {
                ret = 1;
        } else if ((flags & MAILBOX_OPEN_SAVEONLY) != 0) {
                ret = acl_storage_have_right(storage, name,
index 101b16abff7de4df22a7e4401149b96e04ae1cfb..6dc4b261b64e8bf5843d2941f79c3af4776afcc8 100644 (file)
@@ -61,7 +61,7 @@ acl_mailbox_open_as_admin(struct client_command_context *cmd, const char *name)
        /* Force opening the mailbox so that we can give a nicer error message
           if mailbox isn't selectable but is listable. */
        box = mailbox_open(storage, name, NULL, ACL_MAILBOX_OPEN_FLAGS |
-                          MAIL_STORAGE_FLAG_IGNORE_ACLS);
+                          MAILBOX_OPEN_IGNORE_ACLS);
        if (box == NULL) {
                client_send_storage_error(cmd, storage);
                return NULL;
@@ -232,7 +232,7 @@ static bool cmd_myrights(struct client_command_context *cmd)
                return TRUE;
 
        box = mailbox_open(storage, real_mailbox, NULL, ACL_MAILBOX_OPEN_FLAGS |
-                          MAIL_STORAGE_FLAG_IGNORE_ACLS);
+                          MAILBOX_OPEN_IGNORE_ACLS);
        if (box == NULL) {
                client_send_storage_error(cmd, storage);
                return TRUE;