Quoting Omen Wild <[email protected]> on Thu, May 05 16:34:
>
> I can verify the behavior does NOT happen with unpatched mutt, so
> something Debian is adding. Thanks for the idea and sorry for the noise.

I know there has been some talk of the sidebar patch here, so I'll
post this there. I found the culprit, the mutt-patched/sidebar.patch,
specifically this hunk to buffy.c:

----- Begin quote -----
@@ -306,6 +354,11 @@ static int buffy_maildir_dir_hasnew(BUFFY* mailbox, const 
char *dir_name)
       return 0;
   }
 
+  if (option(OPTSIDEBAR) && mailbox->msg_unread > 0) {
+      mailbox->new = 1;
+      return 1;
+  }
+
   if ((dirp = opendir (path)) == NULL)
   {
     mailbox->magic = 0;
----- End quote -----

I can only guess that the author thought mailbox->msg_unread was only new
messages, not old and new messages. Or the author likes having old lumped
in with new, either way, it is a substantial behavior change. I'll
open a bug with Debian.

-- 
One good turn deserves another.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to