[svlug] Re: Procmail (spam) rule for junk tag gaps?

Tim tim at tetro.net
Wed May 14 15:03:14 PDT 2003


On Wed, May 14, 2003 at 07:55:51PM +0000, Robert Hajime Lanning wrote:
> On Wed, 14 May 2003, George Georgalis wrote:
> >     P<k0kaymf1bqxcoz2>en<kh544d1za2fui>is En<kzemikh20yhnqa2>larg<krv7w8h3p9
> >     maz>eme<kbmd107sgr8u>nt Pi<kagxhc6btb55l1n>ll On The Ma<kz69gfa28awdh>rk
> >     e<kzk2vrrpjp65k1
> >
> > I started with this....
> >
> >   | sed -e 's/<[^>]*>//g'
> >
> > Then occured to me, do what happens for client...
> >
> >   | w3m -T text/html -dump
> >
> > and pipe on to spam check test.
> 
> Just don't use the sed command on the headers.  Talk about removing
> required information.

How about this?

# send a copy through this pipe
:0 Wc
| awk '/^$/ {nothdr=1} { if(nothdr) gsub(/<[^>]*>/, ""); print}' \
| spamassassin -e -P > /dev/null

# if spamassassin's exit code was non-zero, it was spam
:0 e:
spam

   - Tim




More information about the svlug mailing list