lilydjwg 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()
--
status: pending -> op
Petri Lehtinen 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 end with a newli
New submission from lilydjwg :
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 (beca