.eml-parser

Just starting out? Need help? Post your questions and find answers here.
artnat
User
User
Posts: 12
Joined: Sun Nov 10, 2024 3:34 pm

.eml-parser

Post by artnat »

Does anybody know an eml-parser to apply in purebasic, and how to embody it into the code?
Axolotl
Enthusiast
Enthusiast
Posts: 798
Joined: Wed Dec 31, 2008 3:36 pm

Re: .eml-parser

Post by Axolotl »

Have you searched for it?
Keep in mind that EML files are saved in plain text format and you can also open these EML files with popular text editors.
So it should be easy to do it by yourself and don't forget to share the results :oops:
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
User avatar
NicTheQuick
Addict
Addict
Posts: 1503
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: .eml-parser

Post by NicTheQuick »

The most complex part is to parse it correctly. There can be all kinds of shenanigans regarding UTF-7 character encoding, multipart messages, base64 encoded data and stuff like that.
So it really is complicated if you want to make it properly and I don't think it is a good idea to reinvent the wheel here. Just find libraries that do that for you. There should be DLLs on Windows that can do that. And on Linux it is as easy as installing packages like `libemail`, `libetpan` or `libgmime-3.0-dev` and then convert the C headers files into something suitable for Purebasic. I know that this is not an easy task on its own but at least you only have to do it once and you do not need to care a lot about updating that library.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Post Reply