From robin.listas at telefonica.net Sat May 6 13:55:46 2023 From: robin.listas at telefonica.net (Carlos E. R.) Date: Sat, 6 May 2023 13:55:46 +0200 Subject: [leafnode-list] Question about filtering Message-ID: <02b07f0a-8ddd-2c63-bb3e-ea8597488c07@telefonica.net> 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? -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 203 bytes Desc: OpenPGP digital signature URL: From matthias.andree at gmx.de Sat May 6 14:26:02 2023 From: matthias.andree at gmx.de (Matthias Andree) Date: Sat, 6 May 2023 14:26:02 +0200 Subject: [leafnode-list] Re: Question about filtering In-Reply-To: <02b07f0a-8ddd-2c63-bb3e-ea8597488c07@telefonica.net> References: <02b07f0a-8ddd-2c63-bb3e-ea8597488c07@telefonica.net> Message-ID: Am 06.05.23 um 13:55 schrieb Carlos E. R. via leafnode-list: > 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? Carlos, you seem to be using leafnode-2. Are you setting the filterfile in /etc/leafnode/config? The filterfile(5) manpage: > You? can also add "filter debugging" if you need more detailed logging, > but it is copious and should not be used unattended. Try running fetch? > news or applyfilter with the "-D33 -e" options to see such logging. HTH From robin.listas at telefonica.net Sat May 6 14:30:09 2023 From: robin.listas at telefonica.net (Carlos E. R.) Date: Sat, 6 May 2023 14:30:09 +0200 Subject: [leafnode-list] Re: Question about filtering In-Reply-To: References: <02b07f0a-8ddd-2c63-bb3e-ea8597488c07@telefonica.net> Message-ID: On 2023-05-06 14:26, Matthias Andree via leafnode-list wrote: > Am 06.05.23 um 13:55 schrieb Carlos E. R. via leafnode-list: >> 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? > > Carlos, you seem to be using leafnode-2. > > Are you setting the filterfile in /etc/leafnode/config? I just noticed that the setting is not activated by default and changed it. I was just going to post that. Will see tomorrow if it worked. Thanks. > > The filterfile(5) manpage: > >> You? can also add "filter debugging" if you need more detailed logging, >> but it is copious and should not be used unattended. Try running fetch? >> news or applyfilter with the "-D33 -e" options to see such logging. > > HTH > -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 203 bytes Desc: OpenPGP digital signature URL: From grschmidt at acm.org Sat May 6 14:27:41 2023 From: grschmidt at acm.org (Gary R. Schmidt ) Date: Sat, 06 May 2023 22:27:41 +1000 Subject: [leafnode-list] Re: Question about filtering In-Reply-To: <02b07f0a-8ddd-2c63-bb3e-ea8597488c07@telefonica.net> References: <02b07f0a-8ddd-2c63-bb3e-ea8597488c07@telefonica.net> Message-ID: 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-)