ב"ה
PHP קוד:
<?php
$content="------=_Part_27331_28312923.1147443914225
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
lolo
lili
lala
------=_Part_27331_28312923.1147443914225
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
lolo
lili
lala
------=_Part_27331_28312923.1147443914225--
";
preg_match_all("#\Content-Disposition: inline(.+?)\------=_Part_#is",$content,$matchs,PREG_PATTERN_ORDER);
print_r($matchs[1]);
?>
דוגמא חיה:
http://bnaya.be/phpfiles/parsemail.php