I've recently started receiving a lot of HTML mail from mailing lists,
and I want to rewrite it into plain text so I can read it a lot easier
in mutt. This is what I've got at the moment which works fine for
conversion but not identification.
:0 BH
* Content-type:.*(text/html|multipart).*
{
file = "/tmp/msg.dump"
LOCKFILE=$file$LOCKEXT
:0 fbw
| cat > $file && lynx -dump $file
LOCKFILE
:0 E fbw
| perl -0777 -pe's/<[^>]*>//g'
}
--
Stephen Patterson http://www.lexx.uklinux.net http://patter.mine.nu
steve(_at_)SPAM(_dot_)lexx(_dot_)uklinux(_dot_)net remove SPAM to reply
Linux Counter No: 142831 GPG Public key: 252B8B37
Last one down the pub's an MCSE
pgpTC7wl59nvo.pgp
Description: PGP signature