changeset 5801:3d14f363f921 HEAD

APPEND {0+} didn't eat the finishing CRLF.
author Timo Sirainen <tss@iki.fi>
date Tue, 26 Jun 2007 15:44:21 +0300
parents c192277a81b3
children 8416f66ac5ab
files src/imap/cmd-append.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-append.c	Mon Jun 25 19:24:53 2007 +0300
+++ b/src/imap/cmd-append.c	Tue Jun 26 15:44:21 2007 +0300
@@ -316,8 +316,7 @@
 	if (ctx->msg_size == 0) {
 		/* no message data, abort */
 		client_send_tagline(cmd, "NO Append aborted.");
-		cmd_append_finish(ctx);
-		return TRUE;
+		return cmd_append_cancel(ctx, nonsync);
 	}
 
 	/* save the mail */