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
ex:
------------------------------- CONTENUTO DEL
BODY------------------------------------
------_=_NextPart_001 _01C67B66.A8D17 11B
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
charset=3Diso-8859-1">
6.5.7650.21">
P Programmazione per il web 430123
__________ Informazione NOD32 1.1548 (20060519) __________
Questo messaggio =E8 stato controllato dal Sistema Antivirus NOD32
------------------------------------- FINE CONTENUTO DEL
BODY-----------------------------
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
message?
is there any imap method that can do it for me?
Thanks in advance.
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
ex:
------------------------------- CONTENUTO DEL
BODY------------------------------------
------_=_NextPart_001 _01C67B66.A8D17 11B
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
charset=3Diso-8859-1">
6.5.7650.21">
P Programmazione per il web 430123
__________ Informazione NOD32 1.1548 (20060519) __________
Questo messaggio =E8 stato controllato dal Sistema Antivirus NOD32
------------------------------------- FINE CONTENUTO DEL
BODY-----------------------------
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
message?
is there any imap method that can do it for me?
Thanks in advance.
Comment