Message197930
The Maildir.add and Maildir.__setitem__ methods in the mailbox module attempts to change the file mtime after moving the file into the new directory. This allows a race condition since other programs are can move or otherwise modify the file as soon as it is placed in the new directory. If the file is moved from the new directory before the mtime is set this results in an unexpected OSError exception.
The fix seems to simply be setting the file mtime before moving the file into its final position. |
|
Date |
User |
Action |
Args |
2013-09-16 18:58:36 | janzert | set | recipients:
+ janzert, petri.lehtinen |
2013-09-16 18:58:36 | janzert | set | messageid: <1379357916.81.0.287125303462.issue19037@psf.upfronthosting.co.za> |
2013-09-16 18:58:36 | janzert | link | issue19037 messages |
2013-09-16 18:58:36 | janzert | create | |
|