Re: [PHP] Parsing mail file [RESOLVED]



Finally, after a long course about the fishing philosophy :-)

A private discussion with Jon give me a very good way to find a solution.
I would to share it with guys who need it :
PECL mailparse package: http://pecl.php.net/package/mailparse

It parses mail files with attachments (rfc822 and rfc2045 compliant messages).

Good luck


Mauro Lorenzutti a écrit :
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
---------------------------------------------------------

.