dovecot: If append fails because input EOF, disconnect the clien...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 1 00:36:07 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/bfb6aeddef9b
changeset: 6338:bfb6aeddef9b
user: Timo Sirainen <tss at iki.fi>
date: Sat Sep 01 00:36:00 2007 +0300
description:
If append fails because input EOF, disconnect the client with EOF reason.
diffstat:
1 file changed, 1 insertion(+)
src/imap/cmd-append.c | 1 +
diffs (11 lines):
diff -r 83357f65cca4 -r bfb6aeddef9b src/imap/cmd-append.c
--- a/src/imap/cmd-append.c Sat Sep 01 00:35:15 2007 +0300
+++ b/src/imap/cmd-append.c Sat Sep 01 00:36:00 2007 +0300
@@ -394,6 +394,7 @@ static bool cmd_append_continue_message(
whole message. */
ctx->failed = TRUE;
mailbox_save_cancel(&ctx->save_ctx);
+ client_disconnect(client, "EOF while appending");
} else if (mailbox_save_finish(&ctx->save_ctx) < 0) {
ctx->failed = TRUE;
client_send_storage_error(cmd, ctx->storage);
More information about the dovecot-cvs
mailing list