🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80644

Re: autocreate groups when someone posts to a nonexisting group?

#80644
From: Jon Bendtsen
Date: Wed, 22 Apr 2009 14:13
44 lines
3074 bytes
Jeffrey M. Vinocur wrote:
> In article <gsn4bh$3ad$1@munin.diku.dk>,
> Jon Bendtsen  <noone@example.com> wrote:
>> I want to post SVN change emails to my own news server. But i dont
>> just want one group. I want to divide into just the right group,
>> such that there is a group for each branch or tag. [...]
>>
>> Someone already made a NNTP posting patch, but it requires that the
>> group you post to exist. I know i need to be able to post to groups
>> that does not exist before someone commits to SVN, but it needs to
>> exist after the commit.
> 
> Hmmmmmmmm.
> 
> You might be able to do this in a posting filter (although I'm
> not actually sure if the check for group existance happens before
> or after the filters get called), but if you're already using a
> script to do the posting, it might be easier (at least if the
> script is on the same server) to do it from there.

It is not on the same server, but SSH can be limited to only allow a
specific program to run, and with ssh key login that is one solution.


> There's no harm in calling `ctlinnd newgroup` on groups that
> already exist (except for cluttering up the logs), so you could
> get something working in a few minutes that way.  The only issue
> would be whether the subversion script is being run as a user
> with permission to access ctlinnd -- you could use a little
> wrapper to validate the group name and then call ctlinnd with it
> if you needed to.

The subversion script is in python, so i would have to extend it
with running an external command. But python also has exceptions,
which should allow me to only run the external command if the 1.
attempt to post returned with a 441, no valid group.

I figure that there might be an easier way, to just allow anyone to
create a group, and since we are only about 50 users behind a
firewall i dont see any problems with abuse.



JonB
Technical Details
Message-ID: <gsn8m9$3ks$1@munin.diku.dk>
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.ams.giganews.com!nntp.giganews.com!uio.no!news.stupi.se!news.net.uni-c.dk!munin.diku.dk!not-for-mail
References: <gsn31b$37q$1@munin.diku.dk> <gsn4bh$3ad$1@munin.diku.dk> <gsn747$tr8$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <gsn8m9$3ks$1@munin.diku.dk>
Subject: Re: autocreate groups when someone posts to a nonexisting group?
Date: Wed, 22 Apr 2009 16:13:29 +0200
From: Jon Bendtsen <noone@example.com>
References: <gsn31b$37q$1@munin.diku.dk> <gsn4bh$3ad$1@munin.diku.dk> <gsn747$tr8$1@puck.litech.org>
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.ams.giganews.com!nntp.giganews.com!uio.no!news.stupi.se!news.net.uni-c.dk!munin.diku.dk!not-for-mail
Newsgroups: news.software.nntp
Organization: Department of Computer Science, University of Copenhagen
Lines: 44
NNTP-Posting-Host: tyr.diku.dk
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: munin.diku.dk 1240409609 3740 130.225.96.226 (22 Apr 2009 14:13:29
 GMT)
X-Complaints-To: news@diku.dk
NNTP-Posting-Date: Wed, 22 Apr 2009 14:13:29 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
In-Reply-To: <gsn747$tr8$1@puck.litech.org>