<<< Date Index >>>     <<< Thread Index >>>

mutt/2152: new read mail in IMAP folder not seen



>Number:         2152
>Notify-List:    muttbug@xxxxxxxxxxxxxxxxx
>Category:       mutt
>Synopsis:       new read mail in IMAP folder not seen
>Confidential:   no
>Severity:       normal
>Priority:       medium
>Responsible:    mutt-dev
>State:          open
>Keywords:       
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 15 13:39:50 +0100 2005
>Originator:     Phil Pennock
>Release:        Mutt 1.5.11 (2005-09-15) (Gentoo patched)
>Organization:
>Environment:
IMAP server is Cyrus IMAP.
>Description:
View an IMAP folder.  View a mail in an IMAP folder.  Leave the mutt client in 
the message view.

Using a second instance of mutt connecting to the same IMAP server, view that 
folder; reply to that message.  Read the new mail, so that it's no longer 
flagged N.  Quit.

Go back to the first mutt client.  It won't pick up that there is new email, 
whether with sync-mailbox or with imap-fetch-mail.

If reply with first client, then when mutt picks up the second new mail it will 
also see the previous one.
>How-To-Repeat:
Example output from a raw IMAP session in EXAMINE state on the same folder:

a5 NOOP
* 29 EXISTS
* 2 RECENT
* 28 FETCH (FLAGS (\Recent \Answered \Seen))

Note that there's no unseen, as in:
  * OK [UNSEEN 25]
so mutt fails to pick up on the new value of the EXISTS tag.
>Fix:
Perhaps (possibly wrong), in imap.c:imap_check_mailbox(), cache idata->seqno 
before the NOOP, then after imap_cmd_finish() if idata->seqno has changed then 
return M_NEW_MAIL.
>Add-To-Audit-Trail:

>Unformatted: