On Mon, 1 Sep 2003, Tony Green wrote:

> On Mon, 2003-09-01 at 19:37, Voytek wrote:
> > would that be a reasonable request, to ask for the SLUG mail list
> > application to be set to convert html emails to text ? (perhaps attaching
> > original html as an attachement ?)
> >
>
> Forcing people into your preferences isn't the linux way.  Instead you
> should use the tools available to change what you want changed for
> yourself.
>
> Just this in your .procmailrc file :
>
> :0
> * ^Content-Type: text/html
> {
>
>     :0 bfW:
>     | (echo "[html stripped]"; lynx -dump -force_html -stdin)
>
>     :0 ahfw:
>     | formail -i"Content-Type: text/plain"
> }

I guess that probably works in this case, since if the html is a mime part
then there's usually a text part already and the problem doesn't arise.

Can someone recommend a good tool for the more general case where there's
a need to process mail based on the headers and content of particular
attachments?  Procmail's a bit to oriented to the top level mime object
sometimes.

Andrew


--

No added Sugar.  Not tested on animals.  May contain traces of Nuts.  If
irritation occurs, discontinue use.

-------------------------------------------------------------------
Andrew McNaughton           In Sydney
                            Working on a Product Recommender System
[EMAIL PROTECTED]
Mobile: +61 422 753 792     http://staff.scoop.co.nz/andrew/cv.doc



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to