views:

118

answers:

1

Is there any library to parse email messages? I know there are a lot. In addition to basic MIME parsing it should be able to parse things like:

  1. If the mail is a forwarded message: parse and tell me the original sender of the message.
  2. Get the the parts that should be quoted. I mean like Gmail shows "- Show quoted text -"

It should support one of these: C/C++, PHP, Python

+1  A: 

You will, most probably, find some code for it in Spam Assassin.

Hassan Syed