[dovecot-cvs] dovecot/src/pop3 client.c,1.7,1.8
cras at procontrol.fi
cras at procontrol.fi
Sat May 3 21:36:36 EEST 2003
Update of /home/cvs/dovecot/src/pop3
In directory danu:/tmp/cvs-serv6796
Modified Files:
client.c
Log Message:
Handle inconsistency error separately.
Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- client.c 3 May 2003 16:31:12 -0000 1.7
+++ client.c 3 May 2003 17:36:34 -0000 1.8
@@ -188,6 +188,14 @@
{
const char *error;
+ if (client->mailbox->is_inconsistency_error(client->mailbox)) {
+ /* we can't do forced CLOSE, so have to disconnect */
+ client_send_line(client, "-ERR Mailbox is in inconsistent "
+ "state, please relogin.");
+ client_disconnect(client);
+ return;
+ }
+
error = client->storage->get_last_error(client->storage, NULL);
client_send_line(client, "-ERR %s", error != NULL ? error :
"BUG: Unknown error");
More information about the dovecot-cvs
mailing list