Article View: news.software.nntp
Article #86283Re: How would your server differ from Diablo and INN ?
From: Steve Crook
Date: Mon, 16 Jun 2014 11:27
Date: Mon, 16 Jun 2014 11:27
63 lines
4628 bytes
4628 bytes
On Sun, 15 Jun 2014 14:31:08 +0200, Julien ΓLIE wrote in Message-Id: <lnk3md$mv8$1@news.trigofacile.com>: > Hi Steve, > >> Cleanfeed is very dependent on Regular Expressions. I rewrote it in >> Python a few years ago but its regex implementation is slightly harder >> work than Perl's. Despite that, I prefer Python and find it more >> structured and easier to read. The Python implementation is here: >> https://github.com/crooks/PyClean > > Does PyClean contain the same checks as Cleanfeed? (not more, not less? > with the same rules?) Hi Julien, No, it's different to Cleanfeed. My goal (aside from using Python) was to make a simpler filter that could be configured without the need to modify/reload code. The Python version retains many of the Cleanfeed functions, such as EMP, binary, html and crosspost testing. It uses config files to host most of the user-definable elements to minimize the filter reloads and the associated risk of those reloads breaking filtering because of a coding error. More complex filters, such as regex matching within a specific group still require coding skills. I don't think there's any way to avoid this due to the infinite permutations of header/content matching admins may wish to do. One problem with using Python filters is that I still need to compile INN with perl support. This is because the Perl nnrpd filters enable header rewriting while Python nnrpd filters don't appear to support it. > Did you test the two ones in parallel so as to check that the same > articles are caught? Providing the same parameters are specified, the EMP, binary, html tests catch the same articles. Some of the older Cleanfeed filters (such as meow groups) aren't included. > Do you provide facilities like the bad_hosts_central file for PyClean? I haven't included that but it would be very easy to do so. > How are the bad_groups, bad_paths and similar files handled with PyClean? They are very similar but with subtle differences. Regex and text matching is done from within the same file with regexs being wrapped in /.../ notation. Each line also has an expiry date on it after which the corresponding filter will not be loaded. E.g:- $ cat bad_body /www\.nike-black\.com/ 20140831 # Nike shoes from China > I suggest that you mention PyClean in a note in ><http://www.mixmin.net/cleanfeed/> page. I agree, I'll update the page to make a reference to it. > Incidentally, we could also reference it in the INN documentation for > Python hooks (the same way as Cleanfeed is referenced for Perl hooks). Thanks, it probably could do with some tidying up but it is a viable alternative for anyone who wants to use Python hooks. -- What shall we use To fill the empty spaces Where we used to talk?
Technical Details
Message-ID:
<slrnlptl5f.pt9.steve@snorky.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.20141118.mbox.gz!border1.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mailReferences:
<lm7c1m$j5v$1@news.mixmin.net> <SI6dndpHM_sMSBrOnZ2dnUVZ_hGdnZ2d@giganews.com> <lm9v4m$f17$2@news.albasani.net> <EJGdnaJ8V56OmAjOnZ2dnUVZ_rGdnZ2d@giganews.com> <ln4asj$duu$2@news.albasani.net> <cP-dnewjK6RxWArOnZ2dnUVZ_oudnZ2d@giganews.com> <Jeff-Relf.Me@Jun.10{20.57.Seattle.2014}> <BKGdnZouTdUlfAXOnZ2dnUVZ_jMAAAAA@giganews.com> <8738fb11ek.fsf@windlord.stanford.edu> <S7qdnUvBk4JceQXOnZ2dnUVZ_t-dnZ2d@giganews.com> <slrnlphpr9.blk.steve@snorky.mixmin.net> <S7qdnULBk4J8cwXOnZ2dnUVZ_t8AAAAA@giganews.com> <S7qdnX3Bk4JacgXOnZ2dnUVZ_t-dnZ2d@giganews.com> <slrnlpjaqr.blk.steve@snorky.mixmin.net> <lnk3md$mv8$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnlptl5f.pt9.steve@snorky.mixmin.net>
Subject: Re: How would your server differ from Diablo and INN ?
Date: Mon, 16 Jun 2014 11:27:43 +0000
From: Steve Crook <steve@mixmin.net>
References: <lm7c1m$j5v$1@news.mixmin.net> <SI6dndpHM_sMSBrOnZ2dnUVZ_hGdnZ2d@giganews.com> <lm9v4m$f17$2@news.albasani.net> <EJGdnaJ8V56OmAjOnZ2dnUVZ_rGdnZ2d@giganews.com> <ln4asj$duu$2@news.albasani.net> <cP-dnewjK6RxWArOnZ2dnUVZ_oudnZ2d@giganews.com> <Jeff-Relf.Me@Jun.10{20.57.Seattle.2014}> <BKGdnZouTdUlfAXOnZ2dnUVZ_jMAAAAA@giganews.com> <8738fb11ek.fsf@windlord.stanford.edu> <S7qdnUvBk4JceQXOnZ2dnUVZ_t-dnZ2d@giganews.com> <slrnlphpr9.blk.steve@snorky.mixmin.net> <S7qdnULBk4J8cwXOnZ2dnUVZ_t8AAAAA@giganews.com> <S7qdnX3Bk4JacgXOnZ2dnUVZ_t-dnZ2d@giganews.com> <slrnlpjaqr.blk.steve@snorky.mixmin.net> <lnk3md$mv8$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!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: Mon, 16 Jun 2014 11:27:43 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
logging-data="9186"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.2-12 (Linux)
Lines: 62
X-Original-Bytes: 4415