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

MRAB google at
Fri Apr 24 01:29:23 CEST 2009

tinnews at 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?
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!

More information about the Python-list mailing list