πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91011

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

#91011
From: Adam W.
Date: Tue, 24 Oct 2023 11:27
23 lines
2194 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> wrote:

> 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) .

One more thing. Is it possible to redirect an article using a Python 
filter? I'd want to edit some headers:

- move Newsgroups to X-Original-Newsgroups
- create new Newsgroups (to direct post to another group)
- maybe modify Subject (to add original group(s) name to it)

And then accept the article.

The goal is to have a local hierarchy where all these spams are posted, so 
they can be reviewed (by me and by my users, if they want to).

If it's not possible, then at least I'd like to save the article to a file 
before rejecting it (and post-process and repost it later, in the same way 
I did with NoCeM-cancelled posts). Is it possible from within a filter?

Thanks!
Technical Details
Message-ID: <uh89ms$vah$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>

Show Full Headers
Complete Article Headers
Message-ID: <uh89ms$vah$3$arnold@news.chmurka.net>
Subject: Re: inn: both Perl and Python filtering at the same time
Date: Tue, 24 Oct 2023 11:27:24 +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>
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
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Oct 2023 11:27:24 -0000 (UTC)
Injection-Info: news.chmurka.net; posting-account="arnold"; posting-host="s.v.chmurka.net:172.24.44.20"; logging-data="32081"; 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:GoxZjC87d/TkMQtJPfZuaRLQTOU= sha1:JcPg2EppOgPgWMUY4x5+eU8Csp8= sha256:eSteCwgNBHrqm113Z1/6mcyqAupNDxmCXoPg3cWlEJY= sha1:g2WTmFQNCdbcTGPTbkwiMN8VyzA= sha256:3dMnOHX+H1Pj0PD+yll3pqVGR8Mvxz1mkSQ5MVu/vG8=