Stephen Patterson wrote:
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
(Off-topic here: I have
in my .muttrc and
text/html; lynx -dump -force_html %s ; copiousoutput
in my .mailcap - works fine, even though it doesn't change the
message, of course, and leaves the HTML bloat in.)
This is what I've got at the moment which works fine for
conversion but not identification.
I haven't done any testing, but I don't think you should include
"multipart" there if you're going to use lynx for the conversion. I
can't imagine getting decent results from sending an entire multipart
message to lynx - does that really work for you?
file = "/tmp/msg.dump"
| cat > $file && lynx -dump $file
Isn't your lynx able to read from standard input? That would make the
temporary file and the locking unnecessary.
| lynx -dump -stdin
procmail mailing list