🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91016

Re: inn: both Perl and Python filtering at the same time

#91016
From: Adam W.
Date: Thu, 26 Oct 2023 02:04
29 lines
2374 bytes
Ray Banana <rayban@raybanana.net> wrote:

> You should not modify an article in filter_innd.pl
> Every time you modify a header in the filter, an innocent kitten dies
> somewhere ;-)

Oh no, save the kittens! :)

Thanks for your response (and all other responses). I wrote the filter and 
I'm running it on the full feed. It saves rejected articles to files that 
are later processed and end up being posted to chmurka.spam.*.thai (* is 
the affected hierarchy). These groups are available on news.chmurka.net 
without authentication (but chmurka.spam.* is stored in a 1 GiB CNFS, so 
the retention might be short).

Here's the script (but I might change it later if something doesn't work 
as it should). Suggestions are welcome:

http://www.chmurka.net/r/usenet/filter_innd.py.txt

Let's see how it works... if it does, I might as well start posting 
NoCeMs with these articles.

> In general, don't do too much processing inside the filter, as it may bring
> the INN daemon to a screeching halt, when the spam flood gets really
> heavy.

Creating a file and writing to it counts as "too much", I guess... but 
let's see.
Technical Details
Message-ID: <uhchej$csr$3$arnold@news.chmurka.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
References: <uh70bm$hfd$1$arnold@news.chmurka.net> <uh86d5$r6ru$1@news.trigofacile.com> <uh89ms$vah$3$arnold@news.chmurka.net> <8mfs209nuh.fsf@raybanana.net>

Show Full Headers
Complete Article Headers
Message-ID: <uhchej$csr$3$arnold@news.chmurka.net>
Subject: Re: inn: both Perl and Python filtering at the same time
Date: Thu, 26 Oct 2023 02:04:03 +0000
From: gof-cut-this-news@cut-this-chmurka.net.invalid (Adam W.)
References: <uh70bm$hfd$1$arnold@news.chmurka.net> <uh86d5$r6ru$1@news.trigofacile.com> <uh89ms$vah$3$arnold@news.chmurka.net> <8mfs209nuh.fsf@raybanana.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: news.chmurka.net
Nntp-Posting-Host: s.v.chmurka.net
Injection-Date: Thu, 26 Oct 2023 02:04:03 -0000 (UTC)
Injection-Info: news.chmurka.net; posting-account="arnold"; posting-host="s.v.chmurka.net:172.24.44.20"; logging-data="13211"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.32-v7+ (armv7l))
Cancel-Lock: sha1:Tsw4EHUN2YJsxa8Dk7uofUpDUe4= sha1:IIgGg/lK3Wu0wA5CAGkXpfP8uNw= sha256:/h4yRD/odj89CD99J0hXem+pi2ImjAAcbhYbAWfy9mk= sha1:dZLRGVG6yhzn3fsbOyCvdQXJ/RE= sha256:GzpdWSvxeTDcf7WklvdXVHCWguddPuV4aRAf3ias82M=