How to read IMAP/POP and save as .EML

Mike Matthews - Omnis omnis at lineal.co.uk
Thu Mar 4 09:25:59 UTC 2021


Hello Alain,

I really need Omnis to read the mailbox, look at the subject line, and then decide where to store the file.  I suppose however, I could still have Omnis read the mailbox, and then tell MacMail with AppleScript where to store the file maybe.

Maybe..

Thank you

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 4 Mar 2021, at 09:10, Alain Stouder Omnis <omnis at smartway.ch<mailto:omnis at smartway.ch>> wrote:

You can use Applescript to export the message from Mail to your file share.

If you use Omnis, store the raw message as a file and use its metadata in your database.

On 3 Mar 2021, at 18:04, Mike Matthews - Omnis <omnis at lineal.co.uk<mailto:omnis at lineal.co.uk>> wrote:

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: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,pZqZngrXoJ5F-2E3r0B21BUSd8Yh9Bz2yGUVwVwspzEGC08qw3a2da_nKBUJ-5XxiFt1dSvw6KZCo5FwrGTQ3iI2ln234DDUpeCMt0TmdoDo9zeXSw94lW0MADYb&typo=1<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.lineal.co.uk%2f&c=E,1,ObNo97ZfyEXtSBokNIhmE3hwUdwbPh06x4RFclgKuVL1ZyVOJr8mDs9h4JJGtYBJPM2BrFEZKrSSLioquZ02qbckBm0I0SSFaWKuIbmj&typo=1>

https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.sqlworks.co.uk&c=E,1,GDfdO0JDO8FsyjYxoHSilVWnxr3dRwwHRDcmyAAoHxHoX8tAFh6UX7gvyA7xYZ-4X8lby9Pc972s4MhPwK69r2O0h63jL_PuWUe8V8S3Qv2MWGajTpi9FA,,&typo=1<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.sqlworks.co%2f&c=E,1,dBFn1eWpvyyIdNRBUZGNSh02X6Lt1D3OO0vZR8QK_aBgI52MC1qewQcAwGkiQI7ma_d2FToNIl0IGvp84whVOle7kNYsoxkSzaf9moTrGzxeqQhGoSBs&typo=1>



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

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

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



More information about the omnisdev-en mailing list