🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80654

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

#80654
From: Julien ÉLIE
Date: Wed, 22 Apr 2009 18:33
24 lines
2295 bytes
Hi Jon,

> 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.

You could also do it before trying to post.
Just send "GROUP news.group.name" and see whether you receive 411
(no such newsgroup).

In case you receive 411, you could send what is called a "newgroup
control article" (see control.ctl and controlchan for more information
about how to deal with control articles).  It will create the newsgroup
on your server within a few seconds.  Just send "GROUP news.group.name"
until you obtain a 211 answer (with of course a timeout, in case
something went wrong).

-- 
Julien ÉLIE

« -- L'argent n'a pas d'odeur.
  -- C'est pourtant le produit de l'urine. » (Réplique de Titus à Vespasien)
Technical Details
Message-ID: <gsno1h$8u8$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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <gsn31b$37q$1@munin.diku.dk> <gsn4bh$3ad$1@munin.diku.dk> <gsn747$tr8$1@puck.litech.org> <gsn8m9$3ks$1@munin.diku.dk>

Show Full Headers
Complete Article Headers
Message-ID: <gsno1h$8u8$1@news.trigofacile.com>
Subject: Re: autocreate groups when someone posts to a nonexisting group?
Date: Wed, 22 Apr 2009 20:33:14 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gsn31b$37q$1@munin.diku.dk> <gsn4bh$3ad$1@munin.diku.dk> <gsn747$tr8$1@puck.litech.org> <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!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 24
NNTP-Posting-Host: aaubervilliers-151-1-69-177.w81-48.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1240425329 9160 81.48.72.177 (22 Apr 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Wed, 22 Apr 2009 18:35:29 +0000 (UTC)
In-Reply-To: <gsn8m9$3ks$1@munin.diku.dk>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049