[Gllug] HTML mail

Simon Stewart sms at lateral.net
Thu Nov 22 14:15:11 UTC 2001


On Thu, Nov 22, 2001 at 01:22:42PM +0000, tet at accucard.com wrote:
> 
> >At the risk of receiving verbal abuse, I thought I would treat you all to
> >an example just received of why indiscriminate HTML email is a PAIN IN THE
> >A*SE!
> >
> > [...]
> >
> ><STYLE type=text/css>
> ><!--
> 
> Yeah, but at least they managed to comment out their style sheets.
> 
> When Outlook sends HTML mail, it doesn't manage to do that, so my
> HTML-aware but style-ignorant MUA gets to show me 3 pages of crappy
> MS style sheets :-(
> 
> What I really want is a procmail rule that'll drop the HTML content
> from multipart/alternative messages that have both text and HTML,
> but leave the HTML there if it's the only option. If someone has
> already concocted such a thing, it'd save me the effort of having
> to try and figure it out for myself...

How's this?

:0
* ^Content-Type: text/html
{
        :0bfW
        | (echo "[html stripped]"; lynx -dump -force_html /dev/fd/0)

        :0ahfw
        | formail -i"Content-Type: text/plain"
}


Cheers,

Simon

-- 
Save a tree, eat a beaver

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list