[dovecot-cvs] dovecot/src/imap cmd-append.c,1.57,1.58
cras at dovecot.org
cras at dovecot.org
Thu Mar 24 22:03:16 EET 2005
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv3957
Modified Files:
cmd-append.c
Log Message:
Eat away the finishing empty line if APPEND failed so we don't send "* BAD"
error to client.
Index: cmd-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- cmd-append.c 15 Mar 2005 21:52:07 -0000 1.57
+++ cmd-append.c 24 Mar 2005 20:03:14 -0000 1.58
@@ -107,6 +107,8 @@
{
size_t size;
+ ctx->client->input_skip_line = TRUE;
+
io_remove(ctx->client->io);
ctx->client->io = NULL;
@@ -214,7 +216,6 @@
sync_flags = ctx->box == cmd->client->mailbox ?
0 : MAILBOX_SYNC_FLAG_FAST;
- client->input_skip_line = TRUE;
cmd_append_finish(ctx);
return cmd_sync(cmd, sync_flags, "OK Append completed.");
}
More information about the dovecot-cvs
mailing list