]> granicus.if.org Git - neomutt/commitdiff
Fix bug added in revision 3.26, where imap_sync_mailbox failed to check
authorBrendan Cully <brendan@kublai.com>
Fri, 29 Jul 2005 01:51:36 +0000 (01:51 +0000)
committerBrendan Cully <brendan@kublai.com>
Fri, 29 Jul 2005 01:51:36 +0000 (01:51 +0000)
whether it was supposed to expunge before issuing a CLOSE.

imap/imap.c

index 9aa2f9876965bea91855c4150f58628da380aef6..11d13df49557df3b501ae0cf2160428c8dee618d 100644 (file)
@@ -1085,7 +1085,7 @@ int imap_sync_mailbox (CONTEXT* ctx, int expunge, int* index_hint)
     }
   }
 
-  if (ctx->closing)
+  if (expunge && ctx->closing)
   {
     if (imap_exec (idata, "CLOSE", 0))
       mutt_error (_("CLOSE failed"));