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)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)