🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #10077

Re: Automating checkgroups

#10077
From: Shane Castle
Date: Tue, 13 Aug 1996 00:00
76 lines
3465 bytes
In news.software.nntp, Richard E Stealey<res@cmprime.cis.att.com> wrote:

>What I want (and thought "doit" would do for me) is to have the
>checkgroups executed in its entirety, updating the local server
>completely.

I don't think anyone has implemented checkgroups to operate this way.
INN doesn't do it (its 'docheckgroups' script doesn't, anyway) and I
haven't heard of any others doing it.  I wouldn't want it to, ever, as
there are too many idiots out there issuing bogus control messages.

The output of the docheckgroups command can be read into the shell and
can update your active file via ctlinnd commands but it won't
automatically update your newsgroups file or your moderators file.  You
still must update those by hand.

Also be aware that there is a bug in the vanilla docheckgroups.  Patch
attached. (Original insisted on spaces between name and description.
Patch causes it to accept spaces or tabs.)

Of course, you could further modify docheckgroups to do what you
want it to...

--
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.patch------------------------------------------
--- 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: <4uqqc1$1aof@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: <4ug3g2$64m@anchor.cis.att.com>

Show Full Headers
Complete Article Headers
Message-ID: <4uqqc1$1aof@bcx01.boco.co.gov>
Subject: Re: Automating checkgroups
Date: Tue, 13 Aug 1996 00:00:00 +0000
From: swcxt@boco.co.gov (Shane Castle)
References: <4ug3g2$64m@anchor.cis.att.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.mbox.zip!not-for-mail
X-Deja-AN: 173992166
Organization: Boulder County Tech Svcs, Boulder CO USA
Reply-to: swcxt@boco.co.gov (Shane Castle)
Newsgroups: news.software.nntp