]> granicus.if.org Git - mutt/commitdiff
Improved error handling.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 19 Feb 2001 18:21:53 +0000 (18:21 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 19 Feb 2001 18:21:53 +0000 (18:21 +0000)
imap/command.c

index b3c3029a4850cf72047cadcd200f34a1117a64c9..73a54ff424c71cbef02ec7817dbe0e01beb2fbfd 100644 (file)
@@ -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. */