πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86978

Re: Patch to munge posting-host

#86978
From: Steve Crook
Date: Wed, 16 Sep 2015 10:47
75 lines
4093 bytes
On Tue, 15 Sep 2015 21:28:57 +0200, Julien Γ‰LIE wrote in
Message-Id: <mt9rhq$p02$1@news.trigofacile.com>:

> Hi Steve,
>
>> I've tidied up the README and INSTALL instructions now.  Hopefully they
>> make sense!  I'd appreciate your feedback on both the instructions and
>> pyclean itself.  It's all too easy to write utilities for oneself and
>> never appreciate the issues they present to others! :)
>>
>> The repository is at:-
>> https://github.com/crooks/PyClean
>
> OK, I'll have a look at it soon.
> I have read the documentation and the samples; they are pretty clear, so 
> that's a good point to start!
>
> A few nits I noted:
>
> * setup.py mentions nymserv.py in its comments.
Well spotted. The dangers of copying files between projects!

> * Line 6 of INSTALL:  missing space after dot.  Also, isn't it 
> MANIFEST.in instead of MANIFEST?
Yes it is, correct now.

> * Line 25 of INSTALL:  "PyClean" with uppercase instead of Pyclean?
Corrected.

> * In samples/local_hosts, the comments do not explain the reason of the 
> second value "20201231".
I've added an explanation now.  The second value is a valid-to date in
yyyymmdd format.

> * No regexp possible in samples/ih_substrings?
No, this is the only file that matches plaintext substrings instead of
regexs.  The reason is that the plaintext substring is substituted if a
match occurs.  I could make it a regex substitution using subgroups but
that requires a reasonably good understanding of Regular Expressions on
the part of the operator.  In my experience, I've always found plaintext
to be sufficient for this function.

> * The first line of your samples (about the location of the file) could 
> be homogenized.
I've now put a common "Default location:" field at the top of each
sample.

> * In pyclean.cfg, could you explain "Some control type articles are 
> completely redundant."?  Which ones?
I've defined 'sendsys', 'senduuname', 'version' and 'whogets' as
redundant.  This is identical to Cleanfeed but, if you feel that's
incorrect, I'm happy to change it.

> * In the [emp] section, maybe the values should be reorganized (by type 
> phl/phn/... or by function maxentries/timed_trim/...).
You're right, they should have been sorted into some kind of order.  I
wonder how they came to be so random!  Sorted alphabetically now which
nicely categorizes them.

> * A neophyt will probably do not understand the meaning of the terms in 
> [emp] and [filters]...  Maybe copying what Cleanfeed says about them 
> could be enough?
I've added better descriptions to each option, including a description
of how EMP filters work.  Hopefully this is sufficient for most
operators to understand what's happening.

> Installation another day.
Thanks very much for your time spent on this.

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

Technical Details
Message-ID: <slrnmvii56.or8.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.(19219).mbox.7z!not-for-mail
References: <slrnmuo6jn.ilk.steve@snorky.mixmin.net> <mshtep$a5l$1@news.trigofacile.com> <slrnmup1fk.ilk.steve@snorky.mixmin.net> <msi7bv$lae$1@news.trigofacile.com> <slrnmuqinb.ilk.steve@snorky.mixmin.net> <mskaa7$h5$1@news.trigofacile.com> <slrnmvd3g9.or8.steve@snorky.mixmin.net> <mt9rhq$p02$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnmvii56.or8.steve@snorky.mixmin.net>
Subject: Re: Patch to munge posting-host
Date: Wed, 16 Sep 2015 10:47:02 +0000
From: Steve Crook <steve@mixmin.net>
References: <slrnmuo6jn.ilk.steve@snorky.mixmin.net> <mshtep$a5l$1@news.trigofacile.com> <slrnmup1fk.ilk.steve@snorky.mixmin.net> <msi7bv$lae$1@news.trigofacile.com> <slrnmuqinb.ilk.steve@snorky.mixmin.net> <mskaa7$h5$1@news.trigofacile.com> <slrnmvd3g9.or8.steve@snorky.mixmin.net> <mt9rhq$p02$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.(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: Wed, 16 Sep 2015 10:47:02 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="b3d35a7ea93243cd2837e0450058617a56b6aceb";
 logging-data="16552"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.3-4 (Linux)
X-Received-Body-CRC: 3999770135
X-Received-Bytes: 4050