Re: [dev] Stripping html from email

From: pancake <pancake_AT_youterm.com>
Date: Tue, 24 Aug 2010 13:47:33 +0200

  On 08/24/10 05:46, Anthony J. Bentley wrote:
>> 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.
>
the encoding of your mail is wrong
Received on Tue Aug 24 2010 - 13:47:33 CEST

This archive was generated by hypermail 2.2.0 : Tue Aug 24 2010 - 14:00:08 CEST