🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89577

Re: cancels, innflags: "-C" and propagation

#89577
From: Julien ÉLIE
Date: Thu, 01 Sep 2022 18:30
73 lines
3627 bytes
Hi Russ,

> I'm not sure INN has a good way of doing this other than using a Perl or
> Python posting filter.  (I'm a bit surprised that we don't, but I can't
> find one off-hand.)

Indeed, there's no native way in INN to configure whether a user can 
post cancels.
One has to add a rule in the nnrpd Perl filter hook (we do not support 
Python hooks for nnrpd).  Alternately, using Paolo's Postfilter great 
script would do the job as a Perl hook.

Just changing in postfilter.conf:

# $config{'allow_control_cancel'} -> [ "true" | "false" ]
#
# This key sets whether the control cancel messages are allowed. The 
value of "true" authorizes them,
# "false" rejects them. This command has no effect if innd is started 
with -C flag.
#
                         'allow_control_cancel', 
"false",        # false = disallow ;

# true = allow
#
# $config{'allow_supersedes'} -> [ "true" | "false" ]
#
# Whether an article can include Supersedes, Replaces, Cancels headers 
that replace an article with another
#
                         'allow_supersedes',                     "false",




> Feels like there should be an access: letter for
> readers.conf permissions that controls whether users can post cancel
> messages, but it doesn't look like that's something that's already
> implemented.

That could be useful, yes.
I see that we have ticket #117:

   readers.conf already has read: and post: parameters.

   We should also provide newnews:, ihave:, localpost: and approve: in
   order to specify the newsgroups on which the user can use these
   facilities.


We could add all these ones, along with a cancel: parameter.


I'm wondering if we should keep 3 different ways to parameter read & co 
accesses:

  1/ newsgroups: "pattern" (for reading and posting)
  2/ read/post and possible other parameters not yet implemented: 
"pattern" (for fine-grained configuration)
  3/ access: "RPAINL" (used in conjunction with newsgroups or read/post/xxx)

It makes the documentation and the functional rules more complex.


Couldn't we just keep the 2/ way in the next major release? (the most 
explicit and understandable)

-- 
Julien ÉLIE

« Il ne faut jamais gifler un sourd : il perd la moitié du plaisir. Il
   sent la gifle mais il ne l'entend pas. » (Georges Courteline)
Technical Details
Message-ID: <teqtov$14odm$1@news.trigofacile.com>
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
References: <tdsqdj$2a5ul$1@dont-email.me> <87pmgtsjir.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <teqtov$14odm$1@news.trigofacile.com>
Subject: Re: cancels, innflags: "-C" and propagation
Date: Thu, 1 Sep 2022 20:30:55 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <tdsqdj$2a5ul$1@dont-email.me> <87pmgtsjir.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-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Sep 2022 18:30:55 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="1204662"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0
Cancel-Lock: sha1:x2P2VojPlaCrq5ZRSkre0NrnLV8= sha256:WuSaPdl/SfyOyAH2QdEkUh9gHM7EWc9XYFfme641c4k= sha1:zlsDfp/IsB+hNB+weTPGFGiX4bs= sha256:li7w6R3lD/GrmsbUu7B2hRSEUUgcqNGnWRN57whFtZM=
In-Reply-To: <87pmgtsjir.fsf@hope.eyrie.org>