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.
---

Reply via email to