nickrussler / email-to-pdf-converter

Converts email files (eml, msg) to pdf
https://www.whitebyte.info/publications/eml-to-pdf-converter
Apache License 2.0
281 stars 65 forks source link

Error: java.lang.IllegalArgumentException: Null charset name #29

Closed mklodner closed 3 years ago

mklodner commented 3 years ago

Hi Nick, We have been using your script. A great tool :-) Today I got a very generic error message. Any idea what might be causing the issue? Thanks a lot! P.S.: I can senforward you the emial if needed. Michal K.

Start converting R:\RPA012\k_SavingEmailsTemp\Temp\EML_mail.eml to R:\RPA012\k_SavingEmailsTemp\Temp_PVK\EML_mail.pdf Mime Structure of R:\RPA012\k_SavingEmailsTemp\Temp\EML_mail.eml: -----------Mime Message-----------

multipart/mixed | multipart/alternative | | text/plain | | text/html | application/octet-stream; attachment | application/octet-stream; attachment

Extract the inline images Start conversion to pdf The eml could not be converted. Error: java.lang.IllegalArgumentException: Null charset name at java.nio.charset.Charset.lookup(Unknown Source) at java.nio.charset.Charset.forName(Unknown Source) at mimeparser.MimeMessageConverter.convertToPdf(MimeMessageConverter.java:259) at cli.Main.main(Main.java:128) at gui.MainWindow.startConversion(MainWindow.java:384) at gui.MainWindow.access$400(MainWindow.java:66) at gui.MainWindow$8$1.run(MainWindow.java:304) at java.lang.Thread.run(Unknown Source)