🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80640

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

#80640
From: Jeffrey M. Vinocur
Date: Wed, 22 Apr 2009 13:46
32 lines
2324 bytes
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.

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.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <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!feeder.erje.net!news2.arglkargh.de!news.litech.org!not-for-mail
References: <gsn31b$37q$1@munin.diku.dk> <gsn4bh$3ad$1@munin.diku.dk>

Show Full Headers
Complete Article Headers
Message-ID: <gsn747$tr8$1@puck.litech.org>
Subject: Re: autocreate groups when someone posts to a nonexisting group?
Date: Wed, 22 Apr 2009 13:46:47 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <gsn31b$37q$1@munin.diku.dk> <gsn4bh$3ad$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!feeder.erje.net!news2.arglkargh.de!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 32
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1240408007 30568 66.218.0.75 (22 Apr 2009 13:46:47
 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Wed, 22 Apr 2009 13:46:47 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)