procmail
[Top] [All Lists]

RE: converting Html to Plaintext

2005-08-15 14:55:35

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


The checking for MIME-Version and Content-Type are just given
as an example.  Insert the checks that are needed in your
situation to detect that the html only message is present.


____________________________________________________________
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