CONVERT EML TO PDF

890 views
Skip to first unread message

C V

unread,
Aug 23, 2017, 4:10:56 AM8/23/17
to Mayan EDMS
I would use mayan edms to handle emails as well, there are some open source software that convert emails and attachment (eml files) to pdf ?
Thanks for the help.

Fabio

Mark Phillips

unread,
Aug 23, 2017, 10:47:30 AM8/23/17
to Mayan EDMS Users
Most printer installation include printing to pdf. You could also try cups to print to a pdf file. The attachments you will have to download.

Mark

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roberto Rosario

unread,
Aug 24, 2017, 3:06:06 PM8/24/17
to Mayan EDMS
It seems Python can handle .eml files natively (https://stackoverflow.com/questions/31392361/how-to-read-eml-file-in-python#31392574) so it could be possible to write a renderer for them in the future. For the moment Mark's suggestion is the most direct. I don't have experience with CUPS but if it can print to PDF, a bridge setup could be done to also upload the PDF. Something like "Print to Mayan". Is it possible to execute a bash file after printing?

Mark Phillips

unread,
Aug 24, 2017, 6:36:46 PM8/24/17
to Mayan EDMS Users
A quick note about cups (cups.org). When you configure it to print a pdf from another document, you specify a directory where to put the file. Maybe you can have it print to a folder that Mayan knows about? Guaranteed, you will have some issues with permissions; I always do...;)

Mark
Reply all
Reply to author
Forward
Message has been deleted
0 new messages