Get E-Mails as .eml?

Post Reply
bkromer
Member
Posts: 99
Joined: Thu Jul 11, 2019 10:41 am

Get E-Mails as .eml?

Post by bkromer »

Is it possible to write a Script to connect to a pop3 and get new mails and save it as ".eml"?
Benjamin
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Get E-Mails as .eml?

Post by freddyp »

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