dovecot-2.2: imap: Fixed CATENATE support to send "+ OK" for lit...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 20 05:40:05 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/4bcbb3ff9e35
changeset: 14610:4bcbb3ff9e35
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 20 05:39:50 2012 +0300
description:
imap: Fixed CATENATE support to send "+ OK" for literals.

diffstat:

 src/imap/cmd-append.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (25 lines):

diff -r 284fdbbeb262 -r 4bcbb3ff9e35 src/imap/cmd-append.c
--- a/src/imap/cmd-append.c	Wed Jun 20 02:45:20 2012 +0300
+++ b/src/imap/cmd-append.c	Wed Jun 20 05:39:50 2012 +0300
@@ -686,14 +686,14 @@
 		/* after literal comes CRLF, if we fail make sure
 		   we eat it away */
 		client->input_skip_line = TRUE;
+		ctx->message_input = TRUE;
+	}
 
-		if (!nonsync) {
-			o_stream_send(client->output, "+ OK\r\n", 6);
-			o_stream_flush(client->output);
-			o_stream_uncork(client->output);
-			o_stream_cork(client->output);
-		}
-		ctx->message_input = TRUE;
+	if (!nonsync) {
+		o_stream_send(client->output, "+ OK\r\n", 6);
+		o_stream_flush(client->output);
+		o_stream_uncork(client->output);
+		o_stream_cork(client->output);
 	}
 
 	cmd->func = cmd_append_continue_message;


More information about the dovecot-cvs mailing list