🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21349

Re: How to add new newsgroups

#21349
From: Forrest J. Cavalier III
Date: Mon, 08 Sep 1997 00:00
38 lines
1899 bytes

In article <slrn61787o.bjd.soma@amanda.dorsai.org>, soma@dorsai.org wrote...
>
>I was wondering how a new newsgroup gets added to an nntp server after the
>control message has been received. (Assuming that the server doesn't
>automatically add it to the list.)
>

INN considers a message a control message:
    If there is a Control: header
    or If there is no control header, and the Subject starts with cmsg

During processing, INN calls ARTcontrol() which does:
    If it is a cancel, it processes it internally, calling ARTcancel()

    If not a cancel and it matches the name of an executable file in the
         _PATH_CONTROLPROGS directory, 
    it does some validation if it is an ihave or sendme,
    then it Spawns the executable.  The executable generally calls     
    parsecontrol, and based on the results of that, will call ctlinnd
    (if newgroup or rmgroup.)

    If it does not match the name of an executable file, then it
        calls _PATH_BADCONTROLPROG.

That's it in a nutshell.  

Free advice: Keep your _PATH_CONTROLPROGS directory clean!
Having old or extra files around with 'x' bits, (e.g. parsecontrol.orig)
is a bad idea.

Forrest Cavalier, Mib Software, INN customization and consulting
500+ pages of INN docs, FAQ, RFCs, etc: 
    http://www.mibsoftware.com/userkt/forprov.htm


Technical Details
Message-ID: <5v0qah$aqp$3@news1.epix.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <slrn61787o.bjd.soma@amanda.dorsai.org>

Show Full Headers
Complete Article Headers
Message-ID: <5v0qah$aqp$3@news1.epix.net>
Subject: Re: How to add new newsgroups
Date: Mon, 08 Sep 1997 00:00:00 +0000
From: mibsoft@epix.net (Forrest J. Cavalier III)
References: <slrn61787o.bjd.soma@amanda.dorsai.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.mbox.zip!not-for-mail
X-Deja-AN: 270691371
Organization: Mib Software
Newsgroups: news.software.nntp