Get E-Mails as .eml?

Post Reply
User avatar
bkromer
Member
Posts: 75
Joined: Thu Jul 11, 2019 10:41 am
Location: Germany

Get E-Mails as .eml?

Post by bkromer » Thu Apr 22, 2021 7:42 am

Is it possible to write a Script to connect to a pop3 and get new mails and save it as ".eml"?
Benjamin Kromer

freddyp
Advanced member
Posts: 609
Joined: Thu Feb 09, 2012 3:53 pm

Re: Get E-Mails as .eml?

Post by freddyp » Fri Apr 23, 2021 2:59 pm

I see 2 possibilities. You define a rule on the mail client to save incoming messages as .eml files, but this will require that you have the mail client open on the Switch server at all times. Alternatively you may have to script something in the mail client.

Or you take what you get from Switch and put everything in an eml using https://www.npmjs.com/package/eml-format

Post Reply