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-Tag: mutt-1-5-10-rel~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5ff97f22a569fa2439592a39c3ec186c296eb85;p=mutt 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 9aa2f987..11d13df4 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"));