1f840760e6e0 moved the buffy->new reset inside the STATUS processor.
Since the current mailbox is not STATUS'ed, it needs to be reset in
imap_buffy_check().
Thanks to Aaron Schrab for reporting this issue (and for helping test
tip).
mailbox->new = 0;
if (imap_get_mailbox (mailbox->path, &idata, name, sizeof (name)) < 0)
+ {
+ mailbox->new = 0;
continue;
+ }
/* Don't issue STATUS on the selected mailbox, it will be NOOPed or
* IDLEd elsewhere.
* idata->mailbox may be NULL for connections other than the current
* mailbox's, and shouldn't expand to INBOX in that case. #3216. */
if (idata->mailbox && !imap_mxcmp (name, idata->mailbox))
+ {
+ mailbox->new = 0;
continue;
+ }
if (!mutt_bit_isset (idata->capabilities, IMAP4REV1) &&
!mutt_bit_isset (idata->capabilities, STATUS))