How to get body of multipart message using mime parser in PHP?
<p>I use mime_parser.php to decode e-mail. It works fine if email is plain text or has one part. But if it has several parts (one for txt, one for html, one for image etc.) than it gets trickier. Moreover body for txt has subbodies:</p>

<pre><code>["Parts"] = &gt;
        array(3) {
        [0] = &gt;
            array(3) {
            ["Headers"] = &gt;
                array(1) {
                ["content-type:"] = &gt;
                    string(75)
                "multipart/alternative; boundary="---- = _NextPart_001_013C_01CE2A45.C94538B0 ""
            }
            ["Parts"] = &gt;
                array(2) {
                [0] = &gt;
                    array(6) {
                    ["Headers"] = &gt;
                        array(2) {
                        ["content-type:"] = &gt;
                            string(27)
                        "text/plain; charset="
                        UTF - 8 "" ["content-transfer-encoding:"] = &gt;
                            string(16)
                        "quoted-printable"
                    }
                    ["Parts"] = &gt;
                        array(0) {}
                    ["Position"] = &gt;
                        int(1915)["Body"] = &gt;
                        string(1400)
                    "THE CONTENT" (...)
</code></pre>

<p>Is there a method to extract the content from such e-mail?</p>
