[leafnode-list] filtering spam articles using the "from" field

Matthias Andree matthias.andree at gmx.de
Sat May 1 20:38:35 CEST 2004


Laurence schrieb am 2004-05-01:

> Ray Abbitt wrote:
> >
> > It's actually fairly easy, but you may want to reconsider just a bit.
> > I believe you will find that a lot of legitimate posts in your spool
> > from users @xx.shawcable.net since shaw is one of the bigger cable
> > connectivity providers in Canada.
> 
> I agree!  Maybe a filter or two on one of the 'Posting-Host' type headers
> would be better.
> 
> > The following filter will work:
> >
> > pattern = ^From:.*shawcable.net
> > action = kill
> 
> When did that change?  I thought the syntax for that was just a single line

Between leafnode-1 (single-line PCRE) and leafnode-2.

>    do grep -q "$*" /var/spool/news/$ngname/$mm && grep Subject:

pcregrep ships with PCRE and is closer to what leafnode will use.

-- 
Matthias Andree

Encrypted mail welcome: my GnuPG key ID is 0x052E7D95



More information about the leafnode-list mailing list