[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: converting html messages to plaintext



On 2002-06-09 12:10 +0000, Greg Norris <haphazard@kc.rr.com> wrote:
> I'd like to convert messages from html to text, for a few specific
> mailing lists.  Is there a procmail recipe for this?

Since you seem to be using mutt, the following line in .mailcap:

text/html; w3m -F -dump %s; nametemplate=%s.html; copiousoutput

and the following line in .muttrc:

auto_view text/html

should do the trick.  It doesn't actually modify the messages, but I
think the end result is what you wanted.  You can also use lynx, links,
html2text or whatever instead of w3m; there are examples in the mailcap
section in the manual.


-- 
Tommi Komulainen                                 Tommi.Komulainen@iki.fi
GPG 1024D/68388EE6    6FD6 DD79 EB38 BF6F 3533  09C0 04A8 9871 6838 8EE6

Attachment: pgp_PPahuwm9J.pgp
Description: PGP signature


Reply to: