procmail
[Top] [All Lists]

Re: converting Html to Plaintext

2005-08-16 12:30:13
  On Aug 15 at 14:39, Gary Funck spoke:


how can one convert mail that consists of HTML only convert to
plaintext?
Are there packages that can be recommended?


Perhaps something like the following?

:0 fbw
* ^Mime-Version:[     ]*1.0
* ^Content-Type:[     ]*text/html
| lynx -dump -stdin -nolist

Thank you for your recommendation.
Yes the `lynx' solution is far better then the `html2text' one.
Lynx can cope better with font directives and with empty lines.

-Hanspeter

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail