πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87735

New version of PyClean

#87735
From: Steve Crook
Date: Sun, 04 Jun 2017 17:23
46 lines
2664 bytes
Hi all,

It's been a while since I've done a new release of PyClean, an innd
filter written in Python.  Below is a summary of the changes introduced
since the last release:-

* Add a new EMP filter seeded by Posting-Host and Newsgroups.
Previously the same PHN filter was applied to all articles, both locally
and remotely posted.  The new filter matches against only locally posted
articles.  This grants the administrator more granular control over how
to treat articles posted to their service.

* Add a local_bad_subject file
Allow matching of Regular Expressions against the subjects of locally
posted articles.  If the local_bad_subject file doesn't exist, this
change will have no effect.

* Add "short reasons" to reject messages
Previously the user and the logfile saw the same reject messages.
Sometimes this is undesirable as too much info tells an (ab)user exactly
how to circumvent a reject.  This change provides for two reject
messages, one logged and the other reported to the user.

* Avoid some false positives in binary filters
The binary filters were matching files containing very long numbers,
spanning multiple lines.  They also matched against signature content.
This change adds conditions to prevent these false positives.  Thanks to
Julian Γ‰lie for reporting this issue.

* Add a log message for locally posted articles
Previously there was no log message for locally injected articles.  This
can provide some useful fodder for the likes of grep.

To install the update, please download the Python filter from Github:
https://github.com/crooks/PyClean
Overwrite INN's bin/filter/filter_innd.py with pyclean.py.
Configure as desired and then reload the filter.

Enjoy!

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?

Technical Details
Message-ID: <slrnoj8gg9.6h1.steve@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrnoj8gg9.6h1.steve@fleegle.mixmin.net>
Subject: New version of PyClean
Date: Sun, 04 Jun 2017 17:23:21 +0000
From: Steve Crook <steve@mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 4 Jun 2017 17:23:21 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="be33e8c4b019bd61620a053168d52c8c202e7b1c";
 logging-data="18505"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/1.0.3 (Linux)
X-Received-Body-CRC: 957268149
X-Received-Bytes: 2575