Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
I tried using imap_* functions in PHP.
Can anyone suggest how to do it efficiently?
I mean parsing headers, decoding them, decoding body of an email, etc.?
I found PEAR's Mail_Mime() package. But could not find anything there for decoding headers, body, text part of the body, etc. individually. Which I think imap_* functions can do (I just read the documentation, but did not try them).
But I am looking for a single package/solution which is very popular.
I guess this is very common problem to parse mails. And there SHOULD be a standard/popular solution to do this.
I suggest Zend_Mail - http://framework.zend.com/manual/en/zend.mail.html, though its mail parsing implementation is only documented in the code itself
Create a Zend_Mail_Message object from your mail string -