Petri Lehtinen pe...@digip.org added the comment:
I cannot reproduce this on 3.2 or 2.7. My mailboxes always have an ending
newline if the last message also has it. Only if the last message doesn't end
in a newline, there's no newline in the end of the mbox. Furthermore, if a
message doesn't
lilydjwg lilyd...@gmail.com added the comment:
I think I got something wrong. It seems that it only happens when the last
message is deleted.
I've also made up a sample mbox attached. The code to reproduce:
from mailbox import mbox
mb = mbox('mbox')
del mb[len(mb)-1]
mb.close()
--
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