开发者

email header parser

开发者 https://www.devze.com 2023-02-15 19:25 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消