Petri Lehtinen <pe...@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 <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