Drew Bloechl <[EMAIL PROTECTED]> wrote:
>
> Yes, in the index there are messages marked as new.  That part of it
> has always worked. 

When reading the folder, Mutt can tell which messages are new, by
reading the Status: headers.  However, that's only done when opening a
folder; when you just want to know if a folder has new mail in it, it's
much faster to simply check the time-stamp on the file, for mbox
folders.

So, Mutt checks the time to determine if it should put an 'N' for that
folder.  You can check this yourself to see what the system has stored
as a time-stamp on the file:

    ls -l /path/to/folder       ==> This gives you the "modified" time.
    ls -lu /path/to/folder      ==> This gives you the "accessed" time.

If the folder was modified at a later time than it was accessed, the
folder is assumed to have new mail in it.  Try this yourself on some
folders that have had new mail delivered to them, and see if you can
figure out why they aren't being set the way Mutt thinks they should be.

If the times are showing up as equal, you can use a script like this to
print out the exact times:

    perl -e '@stat = stat("/path/to/mfolder"); print "Mod = $stat[9], Acc = 
$stat[8]\n";'

This prints the exact times, to the second, which you can compare.  This
is what Mutt actually does.

Using this technique, perhaps you can determine what the problem is.

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer |    PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44

Reply via email to