Page 1 of 1

.eml-files

Posted: Mon Nov 11, 2024 8:35 pm
by artnat
I have thousands of .eml-files in my e-mail archive. I want to parse single eml-files and I would like to apply some of the purebasic mail functions:

CreateMail
FreeMail
GetMailAttribute
GetMailBody
IsMail

I don't know how to address the eml-files with those functions. Is there a possibility?

Re: .eml-files

Posted: Tue Nov 12, 2024 11:06 am
by NicTheQuick
There are already a few implementations in other programming languages to read EML files. I also did this years ago in Python but I don't have the code anymore because it is company owned and I do not work there anymore.
However maybe you can extract something from this Stackoverflow post and convert it to Purebasic: https://stackoverflow.com/a/31392574