bajangerry has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I have a perl script that checks a mailbox for messages, and saves the message portion to a MySQL database. My problem here is that sometimes the message is in HTML format which causes a bunch of HTML code to be saved as well. So, what I need to figure out is how do I check if messages are in HTML format and if so, how do I convert the message to plain text?
Thanks for any input.
Gerry
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Convert HTML Email message to plain text
by bichonfrise74 (Vicar) on Oct 29, 2009 at 19:36 UTC | |
Re: Convert HTML Email message to plain text
by zwon (Abbot) on Oct 29, 2009 at 19:34 UTC | |
Re: Convert HTML Email message to plain text
by salva (Canon) on Oct 30, 2009 at 12:16 UTC | |
by bajangerry (Sexton) on Oct 30, 2009 at 13:16 UTC | |
Re: Convert HTML Email message to plain text
by Anonymous Monk on Oct 29, 2009 at 17:18 UTC | |
by bajangerry (Sexton) on Oct 29, 2009 at 17:52 UTC | |
by merlyn (Sage) on Oct 30, 2009 at 00:48 UTC | |
by JavaFan (Canon) on Oct 30, 2009 at 01:18 UTC | |
by merlyn (Sage) on Oct 30, 2009 at 04:04 UTC | |
|
Back to
Seekers of Perl Wisdom