jeffpflueger has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I'm using NET::POP3 to read mail from a POP account. All is working fine, but the format of the messages are in something that doesn't entirely work well for the human reader. Ex:
<p class=3DMsoNormal><font size=3D3 color=3Dnavy face=3D"Times New = Roman"><span style=3D'font-size:12.0pt;color:navy'>This is a personal email asking += you to join me in volunteering for this upcoming election.&nbsp; I am planning on volunteering Monday, November 7th from 3:30 to 8:00 pm. and then on = Tuesday, election day, from 9am to 5pm. &nbsp;It would be fun to do this with friends an +d = family and mobilize our community.&nbsp; Instead of complaining, let&#8217;s += give pitch in our time and create change.<o:p></o:p></span></font></p>
I want to change this HTML, weird mess (and the weird mark-up with the equals signs before the carriage returns, etc) into plain text. Any suggestions on how this might be accomplished? Thanks for any help!
"No matter where you go, there you are." Jeff Pflueger

Replies are listed 'Best First'.
Re: email format and NET::POP3
by spiritway (Vicar) on Nov 06, 2005 at 23:21 UTC

    You could also try Email::MIME. Those equal signs are part of encoding that this module can help you unsnarl.

Re: email format and NET::POP3
by blue_cowdawg (Monsignor) on Nov 06, 2005 at 23:08 UTC
        I want to change this HTML, weird mess (and the weird mark-up with the equals signs before the carriage returns, etc) into plain text.

    I'd take a look at HTML::Strip or HTML::Parser and implement something using one of those modules.


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg