Re: [PHP] Parsing mail file



Jim Lucas a écrit :
Pierre Pintaric wrote:
Hello there,

I'm sure this question was ask 1,000 times, but I didn't find any archive about this, that's why I need help...

Here is my problem:
I receive mail file from my MTA (ie QMail), that works fine. Now, I would to find a class or a function that parse the mail and gives headers informations, body of the mail (even if it is a multi-part mail) and file attachments.
I found nothing in PEAR library, nothing on the web, ...

I don't what want to rebuild the wheel if somebody works on it and made a good job...
If somebody uses a great function and want to share, I will please him... :-)

Thanks for your help.

Pierre


google.com and ask for php web mail client

This will return you many different examples of php programs that have the function/class that you are looking for.


Of course, I looked for that, in PEAR, you can find Mail::IMAP and Mail::MBox...
All this exemples connect to an IMAP server or to a MBox file, I would only parse an email file...
.