On Thu, Jul 07, 2016 at 11:57:54PM +0100, Richard Russon wrote:
> Yes, but it's a little involved.
> 
> My mail's served by Dovecot over IMAP.  I have some Sieve rules
> filtering incoming mail.  To reproduce the bug:
> 
> - clear header cache
> - receive an email that gets marked as "seen" and put in a folder
>   (that has no new mail)
> - config: "color sidebar_new red default"
> 
> When I start Mutt the folder with the new, but "seen", mail is highlighted.
> After $mail_check seconds, the highlight is cleared.
> If I restart Mutt, I see the same highlight.
> 
> Next, if I open the mailbox, the highlight won't be seen again.
> Unless, I clear the header cache and receive another email.
> 
> Your change to draw_sidebar() made this visible, but I'm not sure how
> long this behaviour has been happening.

I suspect this may have been around for a while.  While I did touch the
buffy code for imap, it was actualy after that commit in the bisect.

I probably need Brendan's help here, but the problem may be in
imap/command.c cmd_parse_status(), the lines here:

          else if (!olduv && !oldun)
            /* first check per session, use recent. might need a flag for this. 
*/
            new = (status->recent > 0);

I'm still fairly unknowledgable about the IMAP code and protocol, but
I'll try to spend some more time looking into this tomorrow.  As a quick
check, you may want to try commenting out those two lines and seeing if
that stops the problem for you.  I have to dash to a class now but will
look into it some more tomorrow.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to