Mercurial > dovecot > original-hg > dovecot-1.2
comparison 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 |
comparison
equal
deleted
inserted
replaced
9444:a5d8d201bd39 | 9445:d7f8dbc38fd7 |
---|---|
227 client->input_skip_line = FALSE; | 227 client->input_skip_line = FALSE; |
228 | 228 |
229 /* [<flags>] [<internal date>] <message literal> */ | 229 /* [<flags>] [<internal date>] <message literal> */ |
230 ret = imap_parser_read_args(ctx->save_parser, 0, | 230 ret = imap_parser_read_args(ctx->save_parser, 0, |
231 IMAP_PARSE_FLAG_LITERAL_SIZE, &args); | 231 IMAP_PARSE_FLAG_LITERAL_SIZE, &args); |
232 if (ret == -1 || client->output->closed) { | 232 if (ret == -1) { |
233 if (!ctx->failed) | 233 if (!ctx->failed) |
234 client_send_command_error(cmd, NULL); | 234 client_send_command_error(cmd, NULL); |
235 cmd_append_finish(ctx); | 235 cmd_append_finish(ctx); |
236 return TRUE; | 236 return TRUE; |
237 } | 237 } |