New submission from lilydjwg <lilyd...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15222>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to