changeset: 6679:5ad82360c6ea
user: Kevin McCarthy <[email protected]>
date: Tue Jun 14 13:11:56 2016 -0700
link: http://dev.mutt.org/hg/mutt/rev/5ad82360c6ea
Reset buffy->new for the current mailbox in IMAP.
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).
diffs (24 lines):
diff -r f447c67f511b -r 5ad82360c6ea imap/imap.c
--- a/imap/imap.c Sun Jun 12 13:49:18 2016 -0700
+++ b/imap/imap.c Tue Jun 14 13:11:56 2016 -0700
@@ -1526,14 +1526,20 @@
continue;
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))