CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Grab the plain text from Email Content

 



ahfeii
Novice

Sep 21, 2011, 12:27 AM

Post #1 of 3 (1134 views)
Grab the plain text from Email Content Can't Post

Dear Sir/Madam,

I am doing a program to manipulate the email body.
What I need is the text/plain only.
I am using Mail::POP3Client to read my email content.

However, i found that my stubborn clients still email me the content-type in multipart/alternative.

In an alternative content, it consists text/plain as well as text/html.
Is there any ready Perl module to allow me grab the text/plain only?

Your help is very much appreciated!

Ah feii


rovf
Veteran

Sep 21, 2011, 1:50 AM

Post #2 of 3 (1131 views)
Re: [ahfeii] Grab the plain text from Email Content [In reply to] Can't Post

Never done it by myself, but I would first have a look at MIME::Parser or Email::MIME on CPAN.


ahfeii
Novice

Sep 21, 2011, 8:15 PM

Post #3 of 3 (1125 views)
Re: [rovf] Grab the plain text from Email Content [In reply to] Can't Post

Thanks for the hint, Rovf.
I shall take a look =)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives