Re: procmail rule for html mail
I remember asking this question before. :-)
Here's the rule that I use for stripping html mail.
:0f
* ^Content-Type: text/html
| lynx -dump -force_html -stdin | formail -i "Content-Type: text/plain"
This will kill the html, and then continue with your normal filters.
Now, if you're looking to filter MIME emails as well (to delete their
text/html parts), that gets more annoying.
For that, I use the procmail library, from http://pm-lib.sourceforge.net/
In specific, pm-jamime-decode.rc and pm-jamime-kill.rc are handy.
Good luck,
crh
--
Corey R. Halpin (http://www.cae.wisc.edu/~halpin/ )
Student of Electrical Engineering and Computer Sciences
University of Wisconsin - Madison
Reply to: