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 {
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 {
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,
/* 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;
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;