Hi Pierre, I have the same problem: I'm searching a function to parse an email file. I found this one: http://pear.php.net/package/Net_IMAP/ I think that you can extract the code you need from the function getParsedHeaders. Regards, Mauro Lorenzutti e-mail: mauro.lorenzutti@xxxxxxxxxxxxx --------------------------------------------------------- WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN Tel +39-0427-926.389 -- Fax +39-0427-927.653 info@xxxxxxxxxxxxx -- www.webformat.com --------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php