Extract Body from Email

This is a discussion on Extract Body from Email within the PHP Language forums, part of the PHP Programming Forums category; Hi, Is there a way to extract just the text part of an IMAP email body without all the gumf ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-26-2007
UKuser
 
Posts: n/a
Default Extract Body from Email

Hi,

Is there a way to extract just the text part of an IMAP email body
without all the gumf at the top? i.e. - the main message part of the
email.

Thanks

A

Reply With Quote
  #2 (permalink)  
Old 04-26-2007
Iván Sánchez Ortega
 
Posts: n/a
Default Re: Extract Body from Email

UKuser wrote:

> Is there a way to extract just the text part of an IMAP email body
> without all the gumf at the top? i.e. - the main message part of the
> email.


Look for \n\n .

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Today is the first day of the rest of the mess.

Reply With Quote
  #3 (permalink)  
Old 04-27-2007
Bruno Barberi Gnecco
 
Posts: n/a
Default Re: Extract Body from Email

UKuser wrote:
> Hi,
>
> Is there a way to extract just the text part of an IMAP email body
> without all the gumf at the top? i.e. - the main message part of the
> email.
>
> Thanks
>
> A
>

Take a look at PEAR::Mail_Mime.

--
Bruno Barberi Gnecco <brunobg_at_users.sourceforge.net>
Rainy days and automatic weapons always get me down.
Reply With Quote
  #4 (permalink)  
Old 04-27-2007
Manuel Lemos
 
Posts: n/a
Default Re: Extract Body from Email

Hello,

on 04/26/2007 10:36 AM UKuser said the following:
> Hi,
>
> Is there a way to extract just the text part of an IMAP email body
> without all the gumf at the top? i.e. - the main message part of the
> email.


You may want to try this mail parser class. It can split even complex
message body parts.

http://www.phpclasses.org/mimeparser


--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:07 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0