On Sunday, 01 April 2007 at 14:53, Jukka Salmi wrote: > Hi, > > with Mutt built using today's sources (rev 5034) I see the following > behaviour (I use IMAP mailboxes exclusively): after being started Mutt > seems to correctly determine which mailboxes contain new messages, > i.e. `change-folder' presents a list of mailboxes containing new > messages. But after I've used `change-folder' once to select on of > these mailboxes, Mutt thinks no other mailboxes contain new messages > anymore, i.e. `change-folder' doesn't present such a list anymore... > > Reverting to rev 5024 fixes the problem; the culprits are probably > revs 5025 and/or 5026. > > Is anybody else seeing this? I don't see this. Can you run mutt with -d3 and send me ~/.muttdebug0? I haven't worked out how it's broken, but by any chance does this patch change things?
diff -r f467353f5657 imap/command.c
--- a/imap/command.c Sat Mar 31 18:50:39 2007 -0700
+++ b/imap/command.c Sun Apr 01 12:46:33 2007 -0700
@@ -932,11 +932,7 @@ static void cmd_parse_status (IMAP_DATA*
if (olduv && olduv == status->uidvalidity)
{
if (oldun < status->uidnext)
- {
inc->new = status->unseen;
- /* forced back to keep detecting new mail until the mailbox is
opened */
- status->uidnext = oldun;
- }
}
else if (!olduv && !oldun)
/* first check per session, use recent. might need a flag for this. */
@@ -944,6 +940,9 @@ static void cmd_parse_status (IMAP_DATA*
else
inc->new = status->unseen;
+ /* forced back to keep detecting new mail until the mailbox is opened
*/
+ status->uidnext = oldun;
+
FREE (&value);
return;
}
Attachment:
pgpxbN8ESHVUG.pgp
Description: PGP signature