Petri Lehtinen <pe...@digip.org> added the comment:

Well, by appending newmail to the mailbox, you effectively break the 
next-to-last message by not inserting a newline after it. This can also be 
achieved by adding a message that doesn't end in a newline to the mbox (using 
the mailbox module).

The real bug is that mailbox doesn't insert an empty line after each message, 
which it should do even if the message doesn't end in a newline. This breaks 
appending new messages (either by cat message >> mbox or by mailbox.py itself), 
and it might also break mbox parsing in other programs that search for starts 
of messages using "\n\nFrom ".

----------
components: +email
nosy: +barry, r.david.murray

_______________________________________
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