From 41ef96b280cba9a401ddb68472954a342b832096 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 19 Feb 2001 18:21:53 +0000 Subject: [PATCH] Improved error handling. --- imap/command.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imap/command.c b/imap/command.c index b3c3029a..73a54ff4 100644 --- a/imap/command.c +++ b/imap/command.c @@ -276,7 +276,11 @@ static void cmd_handle_fatal (IMAP_DATA* idata) if ((idata->state == IMAP_SELECTED) && (idata->reopen & IMAP_REOPEN_ALLOW) && !idata->ctx->closing) + { + idata->status = IMAP_BYE; + idata->state = IMAP_DISCONNECTED; mx_fastclose_mailbox (idata->ctx); + } } /* cmd_handle_untagged: fallback parser for otherwise unhandled messages. */ -- 2.40.0