<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Re: [Nottingham] Perl Strip HTML module?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Thanks for this, I am actually using this module and didn't notice that method,<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Michael Erskine [<A HREF="mailto:msemtd@yahoo.co.uk">mailto:msemtd@yahoo.co.uk</A>]<BR>
Sent: Wednesday, November 08, 2006 02:03 PM GMT Standard Time<BR>
To: nottingham@mailman.lug.org.uk<BR>
Subject: Re: [Nottingham] Perl Strip HTML module?<BR>
<BR>
On Wednesday 08 November 2006 13:16, Richard Bagshaw wrote:<BR>
> Hi Guys,<BR>
><BR>
> I'm writing some code that basically checks a pop mailbox and puts the<BR>
> information into a mysql database, however if the person sends an email<BR>
> in HTML format it looks messy, I am looking for a perl module that will<BR>
> convert it to plain text or just strip the HTML. Does anyone have any<BR>
> ideas on a module to-do this?<BR>
<BR>
Mail::Box looks promising<BR>
<BR>
use Mail::Message::Convert::HtmlFormatText;<BR>
my $af = Mail::Message::Convert::HtmlFormatText->new;<BR>
<BR>
my $plain_body = $af->format($body);<BR>
<BR>
see<BR>
<A HREF="http://perl.overmeer.net/mailbox/html/Mail::Message::Convert::HtmlFormatText/index.html">http://perl.overmeer.net/mailbox/html/Mail::Message::Convert::HtmlFormatText/index.html</A><BR>
<BR>
Regards,<BR>
Michael Erskine.<BR>
<BR>
--<BR>
Moon, n.:<BR>
1. A celestial object whose phase is very important to hackers. See<BR>
PHASE OF THE MOON. 2. Dave Moon (MOON@MC).<BR>
<BR>
Send instant messages to your online friends <A HREF="http://uk.messenger.yahoo.com">http://uk.messenger.yahoo.com</A><BR>
<BR>
<BR>
_______________________________________________<BR>
Nottingham mailing list<BR>
Nottingham@mailman.lug.org.uk<BR>
<A HREF="https://mailman.lug.org.uk/mailman/listinfo/nottingham">https://mailman.lug.org.uk/mailman/listinfo/nottingham</A><BR>
</FONT>
</P>
</BODY>
</HTML>