changeset 6338:bfb6aeddef9b HEAD

If append fails because input EOF, disconnect the client with EOF reason.
author Timo Sirainen <tss@iki.fi>
date Sat, 01 Sep 2007 00:36:00 +0300
parents 83357f65cca4
children 301d0f8e4f91
files src/imap/cmd-append.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 			   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);