dovecot-1.2: FETCH: If FETCH returned [EXPUNGEISSUED], it got st...

dovecot at dovecot.org dovecot at dovecot.org
Sat May 23 01:26:29 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/995d501d8f41
changeset: 9074:995d501d8f41
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 22 18:26:24 2009 -0400
description:
FETCH: If FETCH returned [EXPUNGEISSUED], it got stuck to all subsequent replies too.

diffstat:

1 file changed, 4 insertions(+), 3 deletions(-)
src/imap/cmd-fetch.c |    7 ++++---

diffs (27 lines):

diff -r 90915833f106 -r 995d501d8f41 src/imap/cmd-fetch.c
--- a/src/imap/cmd-fetch.c	Fri May 22 13:07:36 2009 -0400
+++ b/src/imap/cmd-fetch.c	Fri May 22 18:26:24 2009 -0400
@@ -132,11 +132,12 @@ fetch_parse_modifiers(struct imap_fetch_
 
 static bool cmd_fetch_finish(struct imap_fetch_context *ctx)
 {
+	static const char *ok_message = "OK Fetch completed.";
 	struct client_command_context *cmd = ctx->cmd;
-	static const char *ok_message = "OK Fetch completed.";
+	const char *tagged_reply = ok_message;
 
 	if (ctx->partial_fetch) {
-		ok_message = "OK ["IMAP_RESP_CODE_EXPUNGEISSUED"] "
+		tagged_reply = "OK ["IMAP_RESP_CODE_EXPUNGEISSUED"] "
 			"Some messages were already expunged.";
 	}
 
@@ -165,7 +166,7 @@ static bool cmd_fetch_finish(struct imap
 	return cmd_sync(cmd,
 			(ctx->seen_flags_changed ? 0 : MAILBOX_SYNC_FLAG_FAST) |
 			(cmd->uid ? 0 : MAILBOX_SYNC_FLAG_NO_EXPUNGES), 0,
-			ok_message);
+			tagged_reply);
 }
 
 static bool cmd_fetch_continue(struct client_command_context *cmd)


More information about the dovecot-cvs mailing list