[New-bugs-announce] [issue15222] mailbox.mbox writes without end-of-line at the file end.

lilydjwg report at bugs.python.org
Fri Jun 29 07:47:05 CEST 2012


New submission from lilydjwg <lilydjwg at gmail.com>:

I find that when mbox writes mails back, it loses the last end-of-line, making appending new mails to the mbox becomes incorrect.

I'm using Linux. In _singlefileMailbox.flush(), when writing the mbox, it loses the last byte ('\n') at the end of each message (because the position from '_toc' is inclusive), and mbox._pre_message_hook() adds it back, but only between two messages. So the last message ends without a '\n'.

----------
components: Library (Lib)
messages: 164313
nosy: lilydjwg
priority: normal
severity: normal
status: open
title: mailbox.mbox writes without end-of-line at the file end.
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15222>
_______________________________________


More information about the New-bugs-announce mailing list