[issue11935] MMDF/MBOX mailbox need utime

R. David Murray report at bugs.python.org
Thu May 5 17:47:04 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

Steffen, your sense of humor is great, but oftentimes I have no clue what you are talking about.  Where does ftruncate factor in?

I was asking what mutt does when it modifies a file in the hopes that it had some pithy algorithm for making sure the mailbox atime and utime conform to the semi-standard you are talking about, so we could steal it.

I'd like to see a solution to this issue.  My two problems with your patch are (1) it feels wrong to set the atime earlier than the last actual atime and (2) unconditionally doing the work in flush means it might get set even when there wasn't an intended "new mail" condition.

In other words, I think the fix is ugly :).  However, neither of those concerns are necessarily blockers.  Practicality beats purity in many cases, and this may be one of them.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11935>
_______________________________________


More information about the Python-bugs-list mailing list