You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ponymail.apache.org by "iamamoose (via GitHub)" <gi...@apache.org> on 2023/03/28 10:44:49 UTC

[GitHub] [incubator-ponymail-foal] iamamoose commented on pull request #247: Allow messages with no text or HTML body and no attachments.

iamamoose commented on PR #247:
URL: https://github.com/apache/incubator-ponymail-foal/pull/247#issuecomment-1486628345

   Trying to import the attached file without this patch:
   
   $ pipenv run ./import-mbox.py --source  /tmp/mjc11a-sanitised.mbox.txt  --html2text --lid mark@awe.com --dry
   ...
   Thread-1: Slurping /tmp/mjc11a-sanitised.mbox.txt
   Thread-1: Failed to parse: Return=<ma...@awe.com> Message-Id=<195589600>
   Thread-1: Parsed 0 records (failed: 1) from /tmp/mjc11a-sanitised.mbox.txt
   Thread-1: Done, 0 elements left to slurp
   All done! 0 records inserted after 0 seconds. 1 records were bad and ignored. 0 duplicates were ignored.
   
   with it, and setting the config option
   
   $ pipenv run ./import-mbox.py --source  /tmp/mjc11a-sanitised.mbox.txt  --html2text --lid mark@awe.com --dry
   ...
   Thread-1: Slurping /tmp/mjc11a-sanitised.mbox.txt
   No text or html body found, using what we have
   Thread-1: Parsed 1 records (failed: 0) from /tmp/mjc11a-sanitised.mbox.txt
   Thread-1: Done, 0 elements left to slurp
   All done! 1 records inserted after 0 seconds. 0 records were bad and ignored. 0 duplicates were ignored.
   
   
   


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

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