Article View: news.software.readers
Article #266422Re: [Dialog] Filter needed to get rid of Google Groups spam by Message-ID or by User-Agent
From: Bernd Rose
Date: Mon, 04 Dec 2023 21:28
Date: Mon, 04 Dec 2023 21:28
33 lines
2464 bytes
2464 bytes
On Sun, 3rd Dec 2023 21:38:12 -0500, rocco portelli wrote:
> Can this be used to whitelist people?
>
> [news.software.readers]
> !markread,ignore Header {^(Injection-Info: [^.]*.googlegroups.com;posting-host=[0-9.]*; posting-account=)}
>
> If the posting account is in the whitelist, let them through.
> Otherwise plonk them.
There are several possible approaches to this matter. They will fail the
most important point, though, as long as they are based on Injection-Info,
because this requires the body to be loaded...
A few pointers:
This example will move any message from gmail.com if it has not the
injection info for poster 1234abcd:
!move(SPAM) From gmail.com -@Header: {^(Injection-Info: [^.]*.googlegroups.com; posting-host=[0-9.]*; posting-account=1234abcd)}
It will only work for one (or very few) whitelist entries, though. With a
larger whitelist, it would be better to use scoring first:
-10 From gmail.com +@Message-ID: googlegroups.com
+100 Header {^(Injection-Info: .*; posting-account=1234abcd)}
+100 Header {^(Injection-Info: .*; posting-account=9876zyxw)}
!move(SPAM) Score %<0
To use this without loading the bodies, you'd need to find a different
method to identify whitelist posters. (Not injection info, because it
is not part of the basic Overview headers, as I already wrote...)
Bernd
Technical Details
Message-ID:
<11nr6ohsy8fyb.dlg@b.rose.tmpbox.news.arcor.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<ukimeu$m2jo$1@paganini.bofh.team> <ukipg0$pq8$1@rasp.pasdenom.info> <ulpo4tuztr3g.dlg@b.rose.tmpbox.news.arcor.de> <ukjdr6$rqtq$1@paganini.bofh.team> <ukje2k$rrc1$1@paganini.bofh.team>Show Full Headers
Complete Article Headers
Message-ID: <11nr6ohsy8fyb.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: [Dialog] Filter needed to get rid of Google Groups spam by Message-ID or by User-Agent Date: Mon, 4 Dec 2023 22:28:37 +0100 From: Bernd Rose <b.rose.tmpbox@arcor.de> References: <ukimeu$m2jo$1@paganini.bofh.team> <ukipg0$pq8$1@rasp.pasdenom.info> <ulpo4tuztr3g.dlg@b.rose.tmpbox.news.arcor.de> <ukjdr6$rqtq$1@paganini.bofh.team> <ukje2k$rrc1$1@paganini.bofh.team> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: solani.org; logging-data="2480919"; mail-complaints-to="abuse@news.solani.org" User-Agent: 40tude_Dialog/2.0.15.41 (eb9ef3f5.329.490) Cancel-Lock: sha1:nzJODw3kgWlYBKX1nElmQgVOSe0= X-User-Id: eJwFwQkBwDAIBDBL/DA5RwH/Epa4BsdLCw/z8ytZ/4pJ0jaqfV/DP0KFLOu18mX3jMrem7enSkNdNlUwYB4oAJEA51n+4rca0A==