dovecot-2.2: imap: Don't eat away the next command if CATENATE f...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 6 19:51:28 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/113cb77256a7
changeset: 16338:113cb77256a7
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 06 19:51:07 2013 +0300
description:
imap: Don't eat away the next command if CATENATE fails.

diffstat:

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

diffs (30 lines):

diff -r 0b7039a614f7 -r 113cb77256a7 src/imap/cmd-append.c
--- a/src/imap/cmd-append.c	Mon May 06 19:49:55 2013 +0300
+++ b/src/imap/cmd-append.c	Mon May 06 19:51:07 2013 +0300
@@ -324,7 +324,6 @@
 	}
 	if (!ctx->failed)
 		client_send_command_error(cmd, "Invalid arguments.");
-	cmd->client->input_skip_line = TRUE;
 	return -1;
 }
 
@@ -431,9 +430,6 @@
 
 	/* TEXT <literal> */
 
-	/* after literal comes CRLF, if we fail make sure we eat it away */
-	client->input_skip_line = TRUE;
-
 	if (!nonsync) {
 		if (ctx->failed) {
 			/* tagline was already sent, we can abort here */
@@ -738,8 +734,6 @@
 	ret = cmd_append_handle_args(cmd, args, &nonsync);
 	if (ret < 0) {
 		/* invalid parameters, abort immediately */
-		if (ctx->catenate)
-			client->input_skip_line = TRUE;
 		cmd_append_finish(ctx);
 		return TRUE;
 	}


More information about the dovecot-cvs mailing list