How to read IMAP/POP and save as .EML

Mike Matthews - Omnis omnis at lineal.co.uk
Wed Mar 3 17:04:26 UTC 2021


Hello Bruno,

I think I can do this part already, save the HTML part, along with the attachments.

But I want to save the whole email as a single file, just as you would if you dragged a message from your InBox on to the desktop.  MacMail saves it as a .EML file, which you can double click on, and view again in MacMail, and it doesn’t add it back into your storage, just acts as a viewer.  I would think OutLook does the same, but not 100% sure of that.

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>

www.lineal.co.uk<http://www.lineal.co.uk/>

www.sqlworks.co.uk<http://www.sqlworks.co/>



On 3 Mar 2021, at 16:58, Bruno Del Sol <bruno.delsol at bydesign.fr<mailto:bruno.delsol at bydesign.fr>> wrote:

Hi,

I have some code that would read an IMAP INBOX and download the messages it contains as UTF8 html files with attachments on the side.

Regards
Bruno

By Design
https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.bydesign.fr&c=E,1,UDJNWXX6JPKmbCuMS0DqSt33BpMMZaBQJAPn0JN9TT9VsphSDSfn-F8LQt-x_zaX41MBUX0j9UI7Hheg2yzqTPZwj1X3Mun7GvR1jDaihp-P&typo=1
Bruno Del Sol
bruno.delsol at bydesign.fr
46, rue de La Tour d'Auvergne
75009 Paris (France)

Le 03/03/2021 à 17:34, Mike Matthews - Omnis a écrit :
Hello All,

Has anyone read a mailbox using IMAP or POP, and then saved one of the emails as a file, with the type .EML?

I’m not looking for MBOX either.

Thanks

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>

https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.lineal.co.uk&c=E,1,YdaaKYQgQhxdGFsbP1iIsrAVoUc-LeLVI08tno4k3XUnYdcfENYckgHoDY7Aj83YEOj5PiJukCrWnzoLi0hhUWaTPHyD4V625Tf9-o8H2vAbfrjCSX4L6MecudAe&typo=1<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.lineal.co.uk%2f&c=E,1,H9B2zNmXQX7dIGHpK0IZxR0ExF3TJyEwIK-Z-8wnUjs19VzJvZRpe3XvnZMgL2knLXQFaGb65OfaqELXEpDn7R2Rs1j2NEy9LyeHcqsyd460oMMUgg,,&typo=1>

https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.sqlworks.co.uk&c=E,1,aFx_TWbWfirGc2HvnC2vEmYrZtLBj9q0bJltjL-8yYtQVvmSqU3jXdxDgW1IM70J_VacMYDo13uRxQI1CQmo6xJ7V66BEKBG5Avl-5kW&typo=1<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.sqlworks.co%2f&c=E,1,rpQJt65U7lDEWN1xQZJjxtMsTlHCl3xapY1_ty80_-1tNou41nN16nioBrghIc4HARcdPg_q38WipXhljDguYsO6o6XohPpVxkAwBH5VUTtULZMoyU_xs7LNsw,,&typo=1>



_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.omnis-dev.com&c=E,1,nY0iMCtr-9hTXxzUBKnn4_WR_gEmrsscJNiRTSOT0kLKJ4kNXXFck1qVx92opmfcWaWDmNqJmZ0DTiDUTEF6GeAK-p0pVWhwe7JSgZwMMBd_da8rV4TorVc,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list