You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ponymail.apache.org by GitBox <gi...@apache.org> on 2022/08/04 10:16:05 UTC

[GitHub] [incubator-ponymail-foal] sebbASF opened a new issue, #242: Detect bare 'From ' lines in email bodies when importing mbox archives

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-unsubscribe@ponymail.apache.org.apache.org

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


[GitHub] [incubator-ponymail-foal] sebbASF commented on issue #242: Detect bare 'From ' lines in email bodies when importing mbox archives

Posted by GitBox <gi...@apache.org>.
sebbASF commented on issue #242:
URL: https://github.com/apache/incubator-ponymail-foal/issues/242#issuecomment-1205460373

   Another possible check is to see if the unix_from line has the expected mailbox and date components.
   For example, the line should end with a date; in particular it should end with a 4-digit year.


-- 
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-unsubscribe@ponymail.apache.org

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