sebbASF opened a new issue, #242:
URL: https://github.com/apache/incubator-ponymail-foal/issues/242

   Lines starting with 'From ' are not supposed to appear in message bodies, as 
these indicate the start of a new mbox email.
   
   One way to detect these would be to check whether the parsed email has any 
headers.
   This is unlikely for the case of an embedded 'From '.
   If the mail has no headers, then it is almost certainly due to an un-quoted 
'From '.
   
   It could then be processed accordingly.
   
   Simplest would be to drop it, but that means the content of its original 
email would be missing.
   It could be reported, along with the details of the previous valid 'From ' 
line. This could then be fixed later.
   It could potentially be added to the body of the previous email.
   etc.
   Note that there can be multiple 'From ' lines in a single email body.
   
   Whilst it would be possible to make 'From ' line matching stricter, this 
would not help in the case where a valid 'From ' line is included in an email 
body.
   
   Also of course, an email that includes several headers along with the 'From 
' line would not be detected, but that is not likely to be a common occurrence.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@ponymail.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to