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

Re: IMAP, mark_old and new mail



On Tuesday, 31 October 2006 at 15:07, Bob Bell wrote:
> On Tue, Oct 31, 2006 at 09:08:08AM -0800, Brendan Cully wrote:
> >On Tuesday, 31 October 2006 at 10:35, Bob Bell wrote:
> >> It's my understand that "ON" should be reflecting the cache UIDNEXT
> >> value.  That is, it should be 2187, but it is never set.  Therefore,
> >> mutt always thinks the folder has new mail.
> >
> >Actually ON isn't cached until the mailbox is open. Otherwise when you
> >started mutt, it would tell you there was new mail in mailbox FOO,
> >then forget about it the next time it polled. ON should reflect the
> >value of UIDNEXT from the last time you opened the mailbox.
> 
> The partial debug output I provided was actually the result of being in
> INBOX.Bob.MyPrivateFolder, switching to INBOX.Bob.MyOtherFolder, being
> told there was new mail in INBOX.Bob.MyPrivateFolder and switching to
> INBOX.Bob.MyPrivateFolder, going back to INBOX.Bob.MyOtherFolder, and
> then again told there was new mail in INBOX.Bob.MyPrivateFolder and
> switching to INBOX.Bob.MyPrivateFolder.  (Folder names have obviously
> been changed)
> 
> That of course wasn't clear since I didn't mention it and only provided
> a small part of the debug.  I apologize if that caused confusion.  But
> I *did* open the mailbox several times.
> 
> Are you expecting to see a "OK [UIDNEXT" reply to a "SELECT"?  There's
> code in imap.c that's at least handling it, but my IMAP server isn't
> saying it.  Here's a very brief conversation with my IMAP server
> (provided to illustrate what Courier says in response to SELECT):

Oh. Yes, I am. It's required by RFC 3501 (section 6.3.1). There's
probably a way to get mutt to synthesize the value though.

Attachment: pgpgaS2Tl9UiR.pgp
Description: PGP signature