🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88478

Re: Cleanfeed and arbitrary headers.

#88478
From: yamo'
Date: Sat, 29 Aug 2020 09:04
29 lines
1731 bytes
Hi,


Grant Taylor a tapoté le 29/08/2020 05:08:
> Is there a way to check the contents of arbitrary headers with Cleanfeed?
> 
> I'm seeing quite a bit of spam originating from Google Groups (surprise 
> surprise).  The thing is that there are about 20 different 
> "posting-account" IDs in "Injection-Info:" headers.  I would very much 
> like to be able to filter these posting-accounts much like bad_from or 
> bad_body contents.




You can edit your cleanfeed.local

sub local_filter_last {


   if ($hdr{Injection-Info} =~ /what you want|another spam/i/) {
        saveart('badhosts', 'Bad Injection-Info');
        return reject('filtre local', 'Spammeur habituel');
    };


};
-- 
Stéphane
Technical Details
Message-ID: <rid5n1$3bl$1@nemo.pasdenom.info>
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
References: <ricgun$ti2$1@tncsrv09.home.tnetconsulting.net>

Show Full Headers
Complete Article Headers
Message-ID: <rid5n1$3bl$1@nemo.pasdenom.info>
Subject: Re: Cleanfeed and arbitrary headers.
Date: Sat, 29 Aug 2020 11:04:32 +0200
From: yamo' <yamo@beurdin.invalid>
References: <ricgun$ti2$1@tncsrv09.home.tnetconsulting.net>
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.nntp
Organization: Serveur de salon
Reply-To: yamo@groumpf.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 29 Aug 2020 09:04:33 -0000 (UTC)
Injection-Info: nemo.pasdenom.info; posting-account="stephane"; posting-host="192.168.0.254"; logging-data="3445"; mail-complaints-to="abuse@pasdenom.info"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.3
In-Reply-To: <ricgun$ti2$1@tncsrv09.home.tnetconsulting.net>