🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91168

Re: How to configure cleanfeed.local to de-peer google-groups?

#91168
From: yamo'
Date: Sun, 03 Dec 2023 10:43
41 lines
1953 bytes
Hi, 

Don a tapoté :
> 
> Yes. Something is obviously unintentionally broken and needs to be
> fixed. yamo' shows a superior solution earlier in the thread.

My cleanfeed.local has those lines (inside other many lines) :

sub local_flag_spamsource2 {
     return 1 if $hdr{'Injection-Info'} =~ /google-groups.googlegroups.com|posting.uzoreto.com/;
     return 1 if $hdr{'X-Complaints-To'} =~ /abuse\@usenetserver.com/;
     return 0;
 };

sub local_filter_last {

   if(local_flag_spamsource2){
         if (not $hdr{Newsgroups} =~ /^news\.|^fr\./i) {
               return reject( 'spam google?');
           };
       };
 };


Beware my copy past may be broken!
You can check with :

perl -wc /etc/news/filter/cleanfeed/etc/cleanfeed.local

You can adapt them for your config...

> 
> Any ideas from the group on how to make suck properly handle headers
> is appreciated in advance.

I only use innfeed. I never used suck.

-- 
Stéphane
Sorry for my bad English...
Technical Details
Message-ID: <AABlbFvZwxMAAEne.A3.flnews@yamo.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: <20231125a@crcomp.net> <uk3be3$sqg$4@tncsrv09.home.tnetconsulting.net> <20231128a@crcomp.net>

Show Full Headers
Complete Article Headers
Message-ID: <AABlbFvZwxMAAEne.A3.flnews@yamo.pasdenom.info>
Subject: Re: How to configure cleanfeed.local to de-peer google-groups?
Date: Sun, 3 Dec 2023 11:43:37 +0100
From: yamo' <yamo@beurdin.invalid>
References: <20231125a@crcomp.net> <uk3be3$sqg$4@tncsrv09.home.tnetconsulting.net> <20231128a@crcomp.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: <http://pasdenom.info/news.html>
Reply-To: yamo' <yamo@groumpf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Dec 2023 10:43:37 -0000
User-Agent: flnews/1.2.0 (for GNU/Linux)
Cancel-Lock: sha1:CwNx7tBxh9hgXqal8zUnelqhv7I= sha256:6rLsNFO87hZOFnatWCF5ywqZrQfkm0MJ1+DBx9MFC6M=