scharc opened a new issue #488: wrong encoding in attachment breaks import
URL: https://github.com/apache/incubator-ponymail/issues/488
 
 
   when importing mbox file with attachments it breaks with the following error:
   ```
   Found attachment: Kurierplan_17.03.19.xlsx
   Exception in thread Thread-1:
   Traceback (most recent call last):
     File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
       self.run()
     File "import-mbox.py", line 223, in run
       json, contents, _msgdata, _irt = archie.compute_updates(list_override, 
private, message)
     File "/var/www/ponymail/tools/archiver.py", line 342, in compute_updates
       attachments, contents = self.msgfiles(msg)
     File "/var/www/ponymail/tools/archiver.py", line 226, in msgfiles
       part_meta, part_file = parse_attachment(part)
     File "/var/www/ponymail/tools/archiver.py", line 102, in parse_attachment
       print("Found attachment: %s" % filename)
   UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position 
24: ordinal not in range(128)
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to