[dovecot-cvs] dovecot/src/imap cmd-fetch.c,1.31,1.31.2.1
cras at dovecot.org
cras at dovecot.org
Wed Jun 7 12:05:02 EEST 2006
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv27868
Modified Files:
Tag: branch_1_0
cmd-fetch.c
Log Message:
If FETCH fails because client disconnects in the middle of it, return
"Disconnected" error message instead of "unknown error".
Index: cmd-fetch.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-fetch.c,v
retrieving revision 1.31
retrieving revision 1.31.2.1
diff -u -d -r1.31 -r1.31.2.1
--- cmd-fetch.c 13 Jan 2006 20:25:59 -0000 1.31
+++ cmd-fetch.c 7 Jun 2006 09:05:00 -0000 1.31.2.1
@@ -85,6 +85,11 @@
const char *error;
bool syntax, temporary_error;
+ if (ctx->client->output->closed) {
+ client_disconnect(cmd->client, "Disconnected");
+ return TRUE;
+ }
+
storage = mailbox_get_storage(cmd->client->mailbox);
error = mail_storage_get_last_error(storage, &syntax,
&temporary_error);
More information about the dovecot-cvs
mailing list