Article View: news.software.nntp
Article #91014Re: inn: both Perl and Python filtering at the same time
From: Russ Allbery
Date: Tue, 24 Oct 2023 15:33
Date: Tue, 24 Oct 2023 15:33
32 lines
2252 bytes
2252 bytes
gof-cut-this-news@cut-this-chmurka.net.invalid (Adam W.) writes:
> 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).
INN already has some built-in support for filing articles into the special
newsgroup junk regardless of what newsgroup it was actually posted to.
Currently, filters don't have any way of telling innd to file the filtered
article into junk, but that might be a useful feature to add.
That doesn't get you everything else you want, though, and it would put
them all in a single group, so it may not solve your problem (in which
case it might just be a feature without a use case).
We won't ever want to support modifying the headers of the article itself,
since the risk is too high that we'll accidentally propagate the modified
article back out on Usenet and make a mess.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<877cncujah.fsf@hope.eyrie.org>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-mailReferences:
<uh70bm$hfd$1$arnold@news.chmurka.net> <uh86d5$r6ru$1@news.trigofacile.com> <uh89ms$vah$3$arnold@news.chmurka.net>Show Full Headers
Complete Article Headers
Message-ID: <877cncujah.fsf@hope.eyrie.org> Subject: Re: inn: both Perl and Python filtering at the same time Date: Tue, 24 Oct 2023 08:33:42 -0700 From: Russ Allbery <eagle@eyrie.org> References: <uh70bm$hfd$1$arnold@news.chmurka.net> <uh86d5$r6ru$1@news.trigofacile.com> <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 Newsgroups: news.software.nntp Organization: The Eyrie Mime-Version: 1.0 Content-Type: text/plain Injection-Info: hope.eyrie.org; logging-data="10426"; mail-complaints-to="news@eyrie.org" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:z2c6iGHc91pimfJYbVC7VIMkjv4=