Search code examples
cparsingemailimapemail-headers

Parsing Email header fields using C/C++


I've a C code where I fetch headers for all mails in the inbox via imap issuing UID FETCH 1:* (FLAGS BODY[HEADER]) command. Due to special authentication requirements I cannot use a standard imap library like vmime or libetpan. I need to parse the mail header values in accordance with RFC 822. Do we have some library/function in C/C++ which will do the job ?


Solution

  • Mimetic works great ! it also takes care of non-standard mail headers.