homepage

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年06月14日.18:19:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339697945.54.0.942363511274.issue15036@psf.upfronthosting.co.za>
In-reply-to
Content
The fix seems to be very simple:
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index a677729..2be4c83 100644
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -675,6 +675,7 @@ class _singlefileMailbox(Mailbox):
 new_file.write(buffer)
 new_toc[key] = (new_start, new_file.tell())
 self._post_message_hook(new_file)
+ self._file_length = new_file.tell()
 except:
 new_file.close()
 os.remove(new_file.name)
I guess all single-file mailboxes have this issue, not only mbox. I'll still need to add tests when I have time.
History
Date User Action Args
2012年06月14日 18:19:05petri.lehtinensetrecipients: + petri.lehtinen, barry, r.david.murray
2012年06月14日 18:19:05petri.lehtinensetmessageid: <1339697945.54.0.942363511274.issue15036@psf.upfronthosting.co.za>
2012年06月14日 18:19:04petri.lehtinenlinkissue15036 messages
2012年06月14日 18:19:04petri.lehtinencreate

AltStyle によって変換されたページ (->オリジナル) /