From: Brendan Cully Date: Fri, 29 Jul 2005 01:51:36 +0000 (+0000) Subject: Fix bug added in revision 3.26, where imap_sync_mailbox failed to check X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec0adfa63a5fb7dc26c9948412a29ee1dbddc423;p=neomutt Fix bug added in revision 3.26, where imap_sync_mailbox failed to check whether it was supposed to expunge before issuing a CLOSE. --- diff --git a/imap/imap.c b/imap/imap.c index 9aa2f9876..11d13df49 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -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"));