]> code.delx.au - offlineimap/commit
Improve filesystem flushing semantics
authorJohn Goerzen <jgoerzen@complete.org>
Wed, 28 Mar 2007 20:23:18 +0000 (21:23 +0100)
committerJohn Goerzen <jgoerzen@complete.org>
Wed, 28 Mar 2007 20:23:18 +0000 (21:23 +0100)
commit4f548872655a11af6070ca62a988c7a12994514c
tree6652a0e61ab3ddc1e1c2af549dbd69c96e43ab1e
parent4b564bd56803885b932dc7750cdcf01aa5296929
Improve filesystem flushing semantics

fsync the Maildir file, its final directory when writing a new message.

fsync the localstatus file and its final directory when writing the
local status cache.

This should reduce duplication in the event of hardware trouble.

fixes #8

see thread at http://lists.complete.org/offlineimap@complete.org/2007/03/threads.html.gz
offlineimap/folder/LocalStatus.py
offlineimap/folder/Maildir.py