andrew.bernard@gmail.com writes:
My goodness - have just tested with a small Python program. This is a bug in Python. Parsing a single message mbox with a body line somewhere starting with 'From' breaks it into two fragmentary messages. Wow.
Almost certainly not a bug in Python. That's the mbox format. If you're into scatological software analysis, here's one of the best flamers in the business doing his thing on mbox:
https://www.jwz.org/doc/content-length.html
If you've been shocked by the date on that post, no, *nothing* has changed since then. Jamie explains why.
You may be dealing with MTA/MDA software using Content-Length, in which case I'm pretty sure the email package has an option for dealing with it. In that case, you should report an RFE to us and we'll try to figure out how to recognize that file format, and automatically deal with it. If not, the software is too unusual for us to worry about, and we'll help you work around the problem.
Regards,