dovecot-1.1: STORE: Ignore flag changes for read-only (especiall...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Mar 30 11:58:01 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/eec74a6ad62e
changeset: 7442:eec74a6ad62e
user: Timo Sirainen <tss at iki.fi>
date: Sun Mar 30 11:57:57 2008 +0300
description:
STORE: Ignore flag changes for read-only (especially EXAMINEd) mailboxes.
diffstat:
1 file changed, 6 insertions(+)
src/imap/cmd-store.c | 6 ++++++
diffs (16 lines):
diff -r ffd549b542c5 -r eec74a6ad62e src/imap/cmd-store.c
--- a/src/imap/cmd-store.c Sun Mar 30 11:46:45 2008 +0300
+++ b/src/imap/cmd-store.c Sun Mar 30 11:57:57 2008 +0300
@@ -86,6 +86,12 @@ bool cmd_store(struct client_command_con
if (search_arg == NULL)
return TRUE;
+ if (mailbox_is_readonly(box)) {
+ return cmd_sync(cmd, MAILBOX_SYNC_FLAG_FAST |
+ (cmd->uid ? 0 : MAILBOX_SYNC_FLAG_NO_EXPUNGES),
+ 0, "OK Store ignored with read-only mailbox.");
+ }
+
t = mailbox_transaction_begin(box, !silent ? 0 :
MAILBOX_TRANSACTION_FLAG_HIDE);
if (keywords_list == NULL && modify_type != MODIFY_REPLACE)
More information about the dovecot-cvs
mailing list