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

   Trying to import the attached file without the patch:
   
   $ pipenv run ./import-mbox.py --source  /tmp/mjc10-sanitised.mbox  
--html2text --lid [email protected] --dry
   ...
   Thread-1: Slurping /tmp/mjc10-sanitised.mbox
   unknown encoding: utf-8      charset="iso-8859-1"
   Thread-1: Failed to parse: Return=<[email protected]> 
Message-Id=<6c0d22d9cf684e98bf41a>
   Thread-1: Parsed 0 records (failed: 1) from /tmp/mjc10-sanitised.mbox
   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.
   
   after the patch, setting "ignore_bad_contenttype: true"
   
   $ pipenv run ./import-mbox.py --source  /tmp/mjc10-sanitised.mbox  
--html2text --lid [email protected] --dry
   ...
   Thread-1: Slurping /tmp/mjc10-sanitised.mbox
   Ignoring bad Content-Type: utf-8     charset="iso-8859-1"
   Thread-1: Parsed 1 records (failed: 0) from /tmp/mjc10-sanitised.mbox
   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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to