[issue15222] mailbox.mbox writes without empty line after each message
Petri Lehtinen
report at bugs.python.org
Fri Jun 29 21:22:24 CEST 2012
Petri Lehtinen <petri at digip.org> added the comment:
Since there's no empty line between the content of mail 2 and the "From " line of mail 3, the body of mail 2 isn't really terminated by a newline. Reading the message confirms this:
>>> import mailbox
>>> mbox = mailbox.mbox('mbox')
>>> mbox[1].get_payload()
'The mail content of mail 2...'
However, according to RFC 4155 this is a bug, as each message in a mbox must be terminated by an empty line.
----------
title: mailbox.mbox writes without end-of-line at the file end. -> mailbox.mbox writes without empty line after each message
versions: +Python 2.7, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15222>
_______________________________________
More information about the Python-bugs-list
mailing list