Retrieve Entire Email (headers + all body parts) with PHP
<p>I found this script:</p>

<p><a href="http://code.google.com/p/php-mime-mail-parser/" rel="nofollow">http://code.google.com/p/php-mime-mail-parser/</a></p>

<p>It does a much better job parsing the email than what I have concocted for one of my projects over the last year. </p>

<p>For this to work though, the input needs to be the raw text of the email, the entire header and body parts. I have not found a PHP imap function that returns the entire email. </p>

<p>Do you know of one, or is their a way to piece it together?</p>
