This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petri.lehtinen
Recipients barry, petri.lehtinen, r.david.murray
Date 2012-08-07.04:46:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344314802.16.0.793661215411.issue15122@psf.upfronthosting.co.za>
In-reply-to
Content
Thinking about this again, I guess the original design rationale was not to prepare for crashes, but for the ease of implementation. It's not generally possible to rewrite the mailbox fully in-place, because the messages are not loaded into memory. If the order of messages changes, for example, a message can be overwritten in the mailbox file, and its contents need to be read afterwards.

Mutt copes with this by writing the changes to a temporary file, and then copying them over to the original file. This is what we should also be doing.
History
Date User Action Args
2012-08-07 04:46:42petri.lehtinensetrecipients: + petri.lehtinen, barry, r.david.murray
2012-08-07 04:46:42petri.lehtinensetmessageid: <1344314802.16.0.793661215411.issue15122@psf.upfronthosting.co.za>
2012-08-07 04:46:41petri.lehtinenlinkissue15122 messages
2012-08-07 04:46:40petri.lehtinencreate