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.