Help with body parsing from an email

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Using imap i must zap through emails in my email address, then saving
part of the message (the main body that is).
Question is, how am i supposed to read only the message's content,
ignoring all additional informations (charset and whatsoever?
I'm currently reading the text like this:
 imap_body ($this->inbox, $i)
Fact if, that this way i get all other information

------------------------------- CONTENUTO DEL

Content-Type: text/html;


P Programmazione per il web 430123

__________ Informazione NOD32 1.1548 (20060519) __________

Questo messaggio stato controllato dal Sistema Antivirus NOD32

------------------------------------- FINE CONTENUTO DEL
Now, what i'm interested is just the "P Programmazione per il web
430123" string, any lead about how to get that and only that out of the
is there any imap method that can do it for me?

Thanks in advance.

Re: Help with body parsing from an email

[ Nicola ] wrote:
Quoted text here. Click to load it

I think imap_fetchbody will get what you want

Read the follow up comment by 'sales at nocwizard dot com' on


Site Timeline