changeset 9445:d7f8dbc38fd7 HEAD

imap: If client disconnects while appending, don't treat the rest of the message as commands.
author Timo Sirainen <tss@iki.fi>
date Tue, 20 Oct 2009 13:21:13 -0400
parents a5d8d201bd39
children 4a6b04c43147
files src/imap/cmd-append.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-append.c	Sun Oct 18 18:37:03 2009 -0400
+++ b/src/imap/cmd-append.c	Tue Oct 20 13:21:13 2009 -0400
@@ -229,7 +229,7 @@
 	/* [<flags>] [<internal date>] <message literal> */
 	ret = imap_parser_read_args(ctx->save_parser, 0,
 				    IMAP_PARSE_FLAG_LITERAL_SIZE, &args);
-	if (ret == -1 || client->output->closed) {
+	if (ret == -1) {
 		if (!ctx->failed)
 			client_send_command_error(cmd, NULL);
 		cmd_append_finish(ctx);