> Is there currently a tool or script that I can use to strip html
> from emails?  Basically, it should work like this:
> 
> - Read the message from stdin
> - If there is no html, leave as is
> - If it finds both html and plain text, strip the html attachment
> - If it finds html but no plain text, leave as is
> 
> In case something like this doesn't exist, I wouldn't mind writing
> one for myself (awk sounds like the right tool for the job).

It’s not quite what you’re asking for, but I have nmh set up like this:
mhshow-show-text/html: lynx -dump %F | less

Lynx sucks but it sorta works well enough here, I guess.

Reply via email to