vivek241
vivek241

Reputation: 664

How do I parse a .eml file using C/C++?

How do I parse .eml files using C/C++ (or preferably Objective-C)?

I looked around but couldn't find any details about the structure of the file.

Upvotes: 2

Views: 2205

Answers (1)

ajcaruana
ajcaruana

Reputation: 505

EML files are plain ASCII (7-bit) files. The file format is specified in RFC 2822. The mail header will be separated from the body by an empty line.

If you will be dealing with emails that contain attachments, or characters whose value is greater than 127, you will need a base64 decoder. maybe this link will help.

Upvotes: 1

Related Questions