Re: [dev] Stripping html from email

From: Anthony J. Bentley <anthonyjbentley_AT_gmail.com>
Date: Mon, 23 Aug 2010 21:46:58 -0600

> 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.
Received on Tue Aug 24 2010 - 05:46:58 CEST

This archive was generated by hypermail 2.2.0 : Tue Aug 24 2010 - 05:48:02 CEST