[leafnode-list] Re: Question about filtering

Gary R. Schmidt grschmidt at acm.org
Sat May 6 14:27:41 CEST 2023


On 2023-05-06 21:55, Carlos E. R. via leafnode-list wrote:
> Hi,
> 
> I have some spam I want to filter out, and I'm failing.
> 
> From the headers:
> 
> From: APKr at domein.nl (Apk)
> Sender: APKr at domein.nl
> 
> 
> I'm doing:
> 
> /etc/leafnode/filters:
> 
> newsgroups = .*
> pattern = ^From:.*APKr at domein.nl.*
> action = kill
> 
> 
> It is not working. What am I doing wrong?

You need to escape the '.', try using "^From:.*APKr at domein\.nl.*".

         Cheers,
                 Gary    B-)


More information about the leafnode-list mailing list