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) .
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) .
- 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?
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).
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.
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?
You should not modify an article in filter_innd.pl
Every time you modify a header in the filter, an innocent kitten dies somewhere ;-)
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 79:58:36 |
Calls: | 6,716 |
Files: | 12,247 |
Messages: | 5,358,007 |