Solved

Removing quoted text from an email

Posted on 2011-03-01
4
841 Views
Last Modified: 2012-05-11
I'm parsing an email and I was able to extract the 'text/plain' and 'text/html' contents of the mail. My problem now is that I can't extract the 'actual text' from the the whole text (with q'uoted text'). Here's an example.

this is a reply

On Tue, Mar 1, 2011 at 6:32 PM, Jan Michael Chuaquico <
jmschuaquico@gmail.com> wrote:

> test
>
(gmail example)

I only want the 'this is a reply' and not the 'test'. This may be easy if all the emails have this format. But it varies depending on the email client. Here's an example from Yahoo!

test2




________________________________
From: Jewel Garcia
To: Jehaziel Jeiel Garcia
Sent: Tuesday, March 1, 2011 7:48:42 PM
Subject: subject


test

How am I going to solve this problem? Maybe you guys know of any existing classes that has solved this already? Thanks!
0
Comment
Question by:rationalboss
  • 2
4 Comments
 
LVL 7

Expert Comment

by:Vimal DM
Comment Utility
Hai,

"PHPMAILER" is the best one to process the mailing

1) Can send bulk mails
2) Can have bulk attachment
3) Can avoid spams,and the problems that you face on each different mail id's
4) Any type of mail id's will be accepted to the mailer class


just a single mailer class,and code that you know to use

it is available on net

Very Good Code
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
I'm guessing that you're referring to parsing the email in a PIPE script, right?  I have never seen any class that can do what you're describing here.  I think you are on the path of original research.  Unfortunately there are almost as many formats for forwarded and replied-to messages as there are email reader programs.

If you want to post the complete original messages with the headers for a few samples, I will be glad to look at them and try to make some generalized solutions.
0
 
LVL 8

Accepted Solution

by:
rationalboss earned 0 total points
Comment Utility
0
 
LVL 8

Author Closing Comment

by:rationalboss
Comment Utility
No solution was provided so I just made a more extensive Google search.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now