# HG changeset patch # User Timo Sirainen # Date 1256059273 14400 # Node ID d7f8dbc38fd740d05fe1c811350491ede4961688 # Parent a5d8d201bd39bb6b50fabf2ead523ba5f8b80967 imap: If client disconnects while appending, don't treat the rest of the message as commands. diff -r a5d8d201bd39 -r d7f8dbc38fd7 src/imap/cmd-append.c --- 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 @@ /* [] [] */ 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);