[dovecot-cvs] dovecot/src/imap cmd-fetch.c,1.31,1.32
cras at dovecot.org
cras at dovecot.org
Wed Jun 7 12:05:07 EEST 2006
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv6669
Modified Files:
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.32
diff -u -d -r1.31 -r1.32
--- cmd-fetch.c 13 Jan 2006 20:25:59 -0000 1.31
+++ cmd-fetch.c 7 Jun 2006 09:05:05 -0000 1.32
@@ -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