Github user sebbASF commented on the issue:
https://github.com/apache/incubator-ponymail/issues/212
https://docs.python.org/3/library/mailbox.html#mbox says:
"... any occurrences of âFrom â at the beginning of a line in a message
body are transformed to â>From â when storing the message, although
occurrences of â>From â are not transformed to âFrom â when reading the
message."
This is rather unfortunate.
It's likely too late to unmangle the lines once the message has been
parsed, as the >From sequence may occur anywhere, including in attachments.
There does not seem to be any way to intercept the file reader used by the
parser, but one can provide a message factory to the parser and it looks as
though one can use that to overload the file read() methods.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---