🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9438

Re: INN checkgroups

#9438
From: Shane Castle
Date: Thu, 18 Jul 1996 00:00
93 lines
4543 bytes
In news.software.nntp, Derrick Ho<dho@asic.mtv.nec.com> wrote:
>    I am trying to update the newsgroups on our site. I tried using
>docheckgroups and checkgroups found in the INN distribution, but I am
>not getting any where. Before updating to INN, I have C-news and that
>checkgroups script gave me a listing of what's add and what can be
>delete (newsgroups). Can someone tell me what docheckgroups does? If
>these scripts are not right, then what is another solution? Thanks in
>advance for the help.

I had to modify the supplied docheckgroups; apparently, it wanted tabs
only separating the newsgroup name and description.  I modified it so
that it would accept spaces or tabs.  (The characters between the "[]"
below are space and tab, and after the "$i" on the "-" lines is only a
tab.)

Just apply this patch to the docheckgroups in your site directory and
follow it with a "make install" from that same directory, as root.

As for what docheckgroups does: it processes the checkgroups control
message.  The body of this message is defined in RFC1036, but there is
only a short paragraph describing it:

    The message body is a list of "official" newsgroups and their
    description, one group per line.  They are compared against the list
    of active newsgroups on the current host.  The names of any obsolete
    or new newsgroups are mailed to the user "usenet" and descriptions
    of the new newsgroups are added to the help file used when posting
    news.

You'd be surprised how many people send supposed checkgroups messages
that violate even this simple specification.  They add all kinds of
additional verbiage to the message body, screwing it up badly.  They
also add their .sig files at the end :-(.

If you are trying to create an up-to-date active file, I suggest you
get a copy of your newsfeed's file and compare it to your own, using
ctlinnd newgroup commands to create the groups you want and ctlinnd
rmgroup commands to delete the ones you don't want.  You can usually
find a fairly up-to-date newsgroups file on ftp.uu.net as well.

--
Shane Castle             | "Perfection, then, is finally achieved, not
Boulder County Info Svcs | when there is nothing left to add, but when
Boulder CO USA           | there is nothing left to take away."
                         |                - Antoine de Saint-Exup�ry

-------------------------------------------------------------------------
--- docheckgroups.orig	Wed Oct  5 07:14:53 1994
+++ docheckgroups	Thu Jun  6 15:50:51 1996
@@ -48,7 +48,7 @@
 	echo "# You can remove them by executing the commands:"
 	for i in `cat ${T}/$$remove` ; do
 	    echo "	ctlinnd rmgroup $i"
-	    ${EGREP} "^$i	" ${NEWSGROUPS} >>${T}/$$ngdel
+	    ${EGREP} "^$i[ 	]" ${NEWSGROUPS} >>${T}/$$ngdel
 	done
 	echo ''
     ) >>${T}/$$out
@@ -61,11 +61,11 @@
 	echo "# You can do this by executing the command(s):"
 	for i in `cat ${T}/$$add.unmod` ; do
 	    echo "	ctlinnd newgroup $i y ${FROM}"
-	    ${EGREP} "^$i	" ${T}/$$msg >>${T}/$$ngadd
+	    ${EGREP} "^$i[ 	]" ${T}/$$msg >>${T}/$$ngadd
 	done
 	for i in `cat ${T}/$$add.mod` ; do
 	    echo "	ctlinnd newgroup $i m ${FROM}"
-	    ${EGREP} "^$i	" ${T}/$$msg >>${T}/$$ngadd
+	    ${EGREP} "^$i[ 	]" ${T}/$$msg >>${T}/$$ngadd
 	done
 	echo ''
     ) >>${T}/$$out
@@ -78,7 +78,7 @@
 	echo "# You can correct this by executing the following:"
 	for i in `cat ${T}/$$ismod` ; do
 	    echo "	ctlinnd changegroup $i y"
-	    ${EGREP} "^$i	" ${T}/$$msg >>${T}/$$ngchng
+	    ${EGREP} "^$i[ 	]" ${T}/$$msg >>${T}/$$ngchng
 	done
 	echo ''
     ) >>${T}/$$out
@@ -91,7 +91,7 @@
 	echo "# You can correct this by executing the following:"
 	for i in `cat ${T}/$$notmod` ;do
 	    echo "	ctlinnd changegroup $i m"
-	    ${EGREP} "^$i	" ${T}/$$msg >>${T}/$$ngchng
+	    ${EGREP} "^$i[ 	]" ${T}/$$msg >>${T}/$$ngchng
 	done
 	echo ''
     ) >>${T}/$$out

Technical Details
Message-ID: <4sljns$28sh@bcx01.boco.co.gov>
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: <31ed64a7.610807795@elmailer>

Show Full Headers
Complete Article Headers
Message-ID: <4sljns$28sh@bcx01.boco.co.gov>
Subject: Re: INN checkgroups
Date: Thu, 18 Jul 1996 00:00:00 +0000
From: swcxt@boco.co.gov (Shane Castle)
References: <31ed64a7.610807795@elmailer>
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: 168704056
Organization: Boulder County Tech Svcs, Boulder CO USA
Reply-to: swcxt@boco.co.gov (Shane Castle)
Newsgroups: news.software.nntp