I want to design an email header parser using c language. I have the email header in text format, but i don't have any idea of how to parse and ext开发者_StackOverflow中文版ract information from it, and what is the relevent information to be extracted.
If anybody have an idea of any programme please inform.
There are a lot of libraries in C++ that you could use or check out for clues, like these or mimetic.
I suggest you also check these out: RFC2821 and RFC2822
One way to go about it is to use a regular expressions library. This is a good place to start: http://www.gnu.org/s/libc/manual/html_node/Regular-Expressions.html
精彩评论