]> granicus.if.org Git - mutt/commitdiff
Pipeline CLOSE (it's always followed by a SELECT or a LOGOUT).
authorBrendan Cully <brendan@kublai.com>
Tue, 3 Jan 2006 17:35:18 +0000 (17:35 +0000)
committerBrendan Cully <brendan@kublai.com>
Tue, 3 Jan 2006 17:35:18 +0000 (17:35 +0000)
imap/imap.c

index 8e88bd8ba64a6c576a76722710da453d46f0d5b4..4bd6d4c23b89d53930f0495796953e114c53795c 100644 (file)
@@ -1245,9 +1245,7 @@ int imap_sync_mailbox (CONTEXT* ctx, int expunge, int* index_hint)
 
   if (expunge && ctx->closing)
   {
-    if (imap_exec (idata, "CLOSE", 0))
-      mutt_error (_("CLOSE failed"));
-  
+    imap_cmd_queue (idata, "CLOSE");
     idata->state = IMAP_AUTHENTICATED;
   }
 
@@ -1283,8 +1281,8 @@ void imap_close_mailbox (CONTEXT* ctx)
     {
       /* mx_close_mailbox won't sync if there are no deleted messages
        * and the mailbox is unchanged, so we may have to close here */
-      if (!ctx->deleted && imap_exec (idata, "CLOSE", 0))
-        mutt_error (_("CLOSE failed"));
+      if (!ctx->deleted)
+        imap_cmd_queue (idata, "CLOSE");
       if (idata->state == IMAP_IDLE)
       {
         mutt_buffer_addstr (idata->cmdbuf, "DONE\r\n");