From: Timo Sirainen Date: Tue, 20 Oct 2009 17:21:13 +0000 (-0400) Subject: imap: If client disconnects while appending, don't treat the rest of the message... X-Git-Tag: 2.0.alpha2~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7db6a43edd76269b5852cff0422a88779647f4a8;p=thirdparty%2Fdovecot%2Fcore.git imap: If client disconnects while appending, don't treat the rest of the message as commands. --HG-- branch : HEAD --- diff --git a/src/imap/cmd-append.c b/src/imap/cmd-append.c index b4c47a042d..1f9bc2980b 100644 --- a/src/imap/cmd-append.c +++ b/src/imap/cmd-append.c @@ -230,7 +230,7 @@ static bool cmd_append_continue_parsing(struct client_command_context *cmd) /* [] [] */ 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);