On Thu, Sep 09, 2004 at 12:28:56PM +0100, Ted Harding wrote:
Hi Folks,
We are all getting more and more email with the primary body in HTML, as well as the corresponding attachment.
Who what now? Who's sending HTML messages with out a plain text counterpart? You should reply to them and fix them, preferably by attaching a virus to the e-mail, if they're using something dumb enough to not do it as multipart/alternative, and not have a plain text part, it's bound to just execute the virus...
Personally, I've got mutt set up to fire up w3m when I get a HTML only e-mail, I would not like to edit mail sent to me as that kinda defeats the purpose of me keeping it. Train the monkeys, don't work around the problems they cause :)
Just my 2p...
(Oh, and btw, I'm getting less and less HTML e-mail, because I tend to make it very clear that I will not read HTML e-mail as quickly as plain text e-mail, I want clarity, not messy fonts et al. Ergo, if people want me to read something, they send it in plain text, or, if it is neccessary to be in html, a URL to the information in a plain text e-mail with a summary of what I'm supposed to be reading that URL for. Right - erm - random rant over...)
I suppose in answer to your origional question though is something like html2text and some procmail/maildrop/exim foo to automagically mess with the message (keep the origional somewhere, though).
Cheers,