Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1415:c1a7da406bbd HEAD
Handle inconsistency error separately.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 03 May 2003 20:36:34 +0300 |
parents | dcc9b7b868d8 |
children | 36d7bec1da26 |
files | src/pop3/client.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pop3/client.c Sat May 03 20:31:13 2003 +0300 +++ b/src/pop3/client.c Sat May 03 20:36:34 2003 +0300 @@ -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");