Mercurial > dovecot > original-hg > dovecot-1.2
diff src/imap/cmd-append.c @ 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 | 39c234ab0b21 |
children | 00cd9aacd03c |
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);