Hi, I'm sorry I noticed this thread after you walked through the code ... > Index: mutt-1.5.18/imap/command.c > =================================================================== > --- mutt-1.5.18.orig/imap/command.c 2008-09-09 00:17:25.000000000 -0400 > +++ mutt-1.5.18/imap/command.c 2008-09-09 00:17:33.000000000 -0400 > @@ -897,7 +897,7 @@ > > if (olduv && olduv == status->uidvalidity) > { > - if (oldun < status->uidnext) > + /* if (oldun < status->uidnext) */ > inc->new = status->unseen; > } > else if (!olduv && !oldun) I'm attaching another way to fix this. It makes mark_old option work also for IMAP. -- Vlad
IMAP mark_old patch diff --git a/imap/command.c b/imap/command.c --- a/imap/command.c +++ b/imap/command.c @@ -964,7 +964,7 @@ dprint (3, (debugfile, "Found %s in buffy list (OV: %d ON: %d U: %d)\n", mailbox, olduv, oldun, status->unseen)); - if (olduv && olduv == status->uidvalidity) + if (olduv && olduv == status->uidvalidity && option(OPTMARKOLD)) { if (oldun < status->uidnext) inc->new = status->unseen;
Attachment:
pgpQVVX9Th7j3.pgp
Description: PGP signature