Hi fellow self-hosting lemmings,
In an SME setting, I’m looking for a service to regularly fetch mails from an IMAP server and print incoming mails and attachments on a local network printer based on rules (e.g., only print mails where the subject contains a specific word.)
Does a solution like that exist, ideally with a browser frontend to set it up?
Thank you!
https://github.com/nickrussler/email-to-pdf-converter
Make a script using your email clients files and pack it in a cronjob/scheduled task.
Thanks for the reply. I don’t think I fully understand what you mean.
What I would like to have is a service running on a server, fetching and printing mails. Could you please elaborate how your idea would work?
… forget it. I was about to write a long-winded answer, that you can use usual cli mail softare to fetch the eml or msg files (mails) and use the tool on them and then send the pdf to the printers (most printers use pdf internally). But then i remembered that this would be the perfect job for a python script.
But, uh, wouldn’t you better just save the mails instead of printing them? Environment and cost and so on.
Gotcha. Thanks anyway. 🙂
You’re right about printing not being all that, but certain situations (my situation) call for it, at least for the time being.
This is for manufacturing orders in a low tech environment, and at this point in time I need to stick with a paper trail (so I can get rid of it in the future.)
There’s an outlook addon that does exactly this, it’s not free but works as advertised
Thank you for the suggestion. Not exactly what I’m looking for, sadly.
Now this is an idea I like. Thank you so much, I never would have considered Node-RED for this application!
You might want to check out Mozilla Thunderbird or even MS outlook for this. I don’t believe roundcube (web client) has this ability.
Thanks for the idea. It’s not quite what I was looking for, but I might look into it more if I don’t find anything better.
From the looks of it, it requires python scripting anyway, so there isn’t a big advantage to fetching the mail with python and imaplib directly.