Nico Golde:
[apps/madmutt.git] / imap / imap.c
index 2a4dff5..6b37230 100644 (file)
@@ -1030,7 +1030,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"));
     idata->state = IMAP_AUTHENTICATED;