You are here: Help with body parsing from an email « PHP Programming Language « IT news, forums, messages
Help with body parsing from an email

Posted by [ Nicola ] on 05/20/06 11:30

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.A8D1711B
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
http://www.nod32.it

------------------------------------- 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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация