From: Thomas Roessler Date: Mon, 19 Feb 2001 18:21:53 +0000 (+0000) Subject: Improved error handling. X-Git-Tag: mutt-1-3-16-rel~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41ef96b280cba9a401ddb68472954a342b832096;p=mutt Improved error handling. --- 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. */