mailbox.mbox.add() sets access time as well as modification time

tinnews at isbd.co.uk tinnews at isbd.co.uk
Sat Apr 25 12:38:20 EDT 2009


MRAB <google at mrabarnett.plus.com> wrote:
> tinnews at isbd.co.uk wrote:
> > It seems to me that mailbox.mbox.add() sets the access time of a mbox
> > file as well as the modification time.  This is not good for MUAs that
> > detect new mail by looking to see if the access time is before the
> > modification time.
> > 
> > Have I done something wrong somewhere or is mailbox.mbox.add() really
> > as broken as it would appear?
> > 
> [snip]
> The access time is the time it was last accessed, ie read or modified.
> 
> The modification time is the time it was last modified.
> 
> The access time can never be before the modification time because it
> must be accessed in order to be modified!

Well in that case very MUA that I have ever come across is broken!
Access time *can* be before modification time, that's how most MUAs
work with mbox files.

-- 
Chris Green




More information about the Python-list mailing list