🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91006

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

#91006
From: Julien ÉLIE
Date: Tue, 24 Oct 2023 10:31
22 lines
1937 bytes
Hi Adam,

> Is it possible to run both Perl (cleanfeed) and Python (my small script,
> yet to be written) filters together? What's the rule then? Both filters
> have to accept the article for it to be accepted by the server (so if at
> least one rejects it, it will be rejected)?

Yes you can run both filters.  They both have to accept the article.
The Python script (filter_innd.py) is run, then the Perl one 
(filter_innd.pl, which corresponds to cleanfeed) .

% ctlinnd python y
ctlinnd: Python filter already enabled
% ctlinnd perl y
ctlinnd: Perl filter already enabled

to ensure they are enabled.

-- 
Julien ÉLIE

« C'est la goutte qui fait déborder l'amphore ! » (Assurancetourix)
Technical Details
Message-ID: <uh86d5$r6ru$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: <uh70bm$hfd$1$arnold@news.chmurka.net>

Show Full Headers
Complete Article Headers
Message-ID: <uh86d5$r6ru$1@news.trigofacile.com>
Subject: Re: inn: both Perl and Python filtering at the same time
Date: Tue, 24 Oct 2023 12:31:01 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <uh70bm$hfd$1$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
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: Tue, 24 Oct 2023 10:31:01 -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="891774"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:905oZQ/Pg3gMtnNDqZ4qK+76Xnw= sha256:pBVQcJqWMrhj4TIkn/u92is+tyLMZbemTYH2AneDgZI= sha1:mvBcBwo969X7RMqAaKPhH8jYbSE= sha256:0hrZX7+3wOwtIpCMC3FEK2r6ADYyiwmL5nYJw2xd0L0=
In-Reply-To: <uh70bm$hfd$1$arnold@news.chmurka.net>