dovecot-1.0: STORE: Ignore flag changes for read-only (especiall...

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 30 11:58:04 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.0/rev/cf92e479d9ae
changeset: 5545:cf92e479d9ae
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 30 11:57:56 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 9c3adc775c92 -r cf92e479d9ae src/imap/cmd-store.c
--- a/src/imap/cmd-store.c	Sun Mar 23 17:56:51 2008 +0200
+++ b/src/imap/cmd-store.c	Sun Mar 30 11:57:56 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);
 	keywords = keywords_list != NULL || modify_type == MODIFY_REPLACE ?


More information about the dovecot-cvs mailing list