Marco Ahrendt <[EMAIL PROTECTED]> wrote on Tue, 14 Nov 2000:
> whenever i get new mail this N mark is correctly set by mutt. the
> interesting thing is, when i read my mail in the mailbox and i mark
> it "new" by hand again (after reading it) the mail gets the N flag fine.
> but after changing the mailbox and listing all mailboxes, the mailbox
> which stores the mail with N flag doesn´t has the N flag self. very
> complicated eh?! :)
This is because Mutt doesn't update the folder modification/access times
according to whether the folder still has new mail in it (or not).
For mbox folders, the N appears in the folder listing if (and only if)
the modification time for the file is newer than the access time.
After you've entered a folder with Mutt, even if you don't touch the
contents in any way (read any messages or anything), the access time
will be updated. And if you do change something in the folder, once
it's written to the disk the modification and access times will be
set to the same time, and the folder will not be considered to contain
any new mail (regardless of individual message states inside).
This issue has come up before, and I have some vague memories about a
patch that would set the file access time to 1 second before the file
modification time when an mbox folder was exited, if it contained new
mails. But I'm not sure if that's just me imagining things, or not.
Regards,
Mikko
(who prefers Maildir as a folder-format for incoming mails -- among
other things, no hassles with the "folder has new mail" detection)
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.wizzu.com /
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
"I took an IQ test and the results were negative."