[Spambayes] [ spambayes-Patches-748259 ] Possibly safer mbox update for mboxtrain

SourceForge.net noreply at sourceforge.net
Tue Jun 3 09:58:19 EDT 2003


Patches item #748259, was opened at 2003-06-03 10:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=748259&group_id=61702

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Neale Pickett (npickett)
Summary: Possibly safer mbox update for mboxtrain

Initial Comment:
Mboxtrain currently opens the mbox file for read and write,
truncating the file when it's ready to write.  This patch
enhances things in two ways.   One, it writes to a temp file
and renames it to the original mbox file upon successful
completion.  Two, it uses tempfile.mkstemp() if available,
falling back to tempfile.mktemp() if not.  os.tmpfile() is
avoided.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=748259&group_id=61702



More information about the Spambayes mailing list