1
I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.
Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?
Pandoc didn't work for me, I encountered
– TryTryAgain – 2015-11-04T20:08:55.843pandoc: Error producing PDF from TeX source
even after installing 1GB of dependencies. I instead used MHonArc which was easy to use too and available in most all package installers.apt-get install mhonarc' and then you can convert an entire mailbox/folder or even a single file like
mhonarc -single somemailfile > converted.html`