🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89245

Re: cleanfeed help

#89245
From: Julien ÉLIE
Date: Mon, 21 Mar 2022 19:01
53 lines
3215 bytes
Hi Nigel,

>> md5_skips_followups => 1, # avoid MD5 check on articles with
>> References?
>>
>> The default (1) is to *not* perform MD5 checks in these cases.
> 
> OK. That is set to 0 here in my cleanfeed.local file. I don't recall
> ever changing it but I'll go ahead and change it to 1.

In fact, the cleanfeed.local sample sets it to 0:
   https://github.com/crooks/cleanfeed/blob/master/cleanfeed.local.sample

Normally, you don't need changing the defaults (and therefore do not 
need having a cleanfeed.local).
Make sure all the other changes fit your needs (notably the special 
filters for Google Groups posts, and the fact that all cancels are 
blocked - even those using Cancel-Lock).

I've opened an issue to change the sample file (or at least comment the 
lines).


>> What do you have in the "bad_subject" file? (this file is located in
>> the $config_dir directory set at the beginning of the Cleanfeed
>> script)
> 
> Other than comments
> 
> simpbiz.software
> Buy ketamine for depression
> 
>> Seems like "for" appears uncommented in that file.  You should
>> investigate its contents.
> 
> Ah, that is where the "for" is. I'm obviously using it incorrectly. I
> thought PCREs would use a single space as a space but I guess I need to
> use period (any character) or I guess \s instead.

I agree the documentation is not clear.  Each line of the file is 
expected to be a Perl regexp.  "Buy ketamine for depression" is normally 
one, but when parsing the file in read_file(), Cleanfeed does a split 
when a white space is seen, so the whole regexp becomes:
(simpbiz.software|Buy|ketamine|for|depression)
and therefore matches "for".

Though not tested, I believe using "Buy\sketamine\sfor\sdepression" will 
work.

-- 
Julien ÉLIE

« Tous les chemins mènent à rame… » (Mouléfix)
Technical Details
Message-ID: <t1ai1l$kkik$1@news.trigofacile.com>
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: <20220314210807.48ae7fec@wibble.sysadmininc.com> <t12hhj$fk24$1@news.trigofacile.com> <20220321015525.10407e93@wibble.sysadmininc.com>

Show Full Headers
Complete Article Headers
Message-ID: <t1ai1l$kkik$1@news.trigofacile.com>
Subject: Re: cleanfeed help
Date: Mon, 21 Mar 2022 20:01:08 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <20220314210807.48ae7fec@wibble.sysadmininc.com> <t12hhj$fk24$1@news.trigofacile.com> <20220321015525.10407e93@wibble.sysadmininc.com>
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: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 21 Mar 2022 19:01:09 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="676436"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0
Cancel-Lock: sha1:9hKsjv/JAsp+AI3Z9m79qpC+enk= sha256:TPkG/RWDCD5ykCElYPmbvMkEh4Qw3hbbyCcc8sAPCkY= sha1:b1fG0KWNpsFNjovvoO93dzR7pXQ= sha256:kV6rCWXez6zwe8+kK2/iKwdxZgaveGQcmqX6VIS22JA=
In-Reply-To: <20220321015525.10407e93@wibble.sysadmininc.com>