Thread View: news.software.nntp
2 messages
2 total messages
Started by Derrick Ho
Wed, 17 Jul 1996 00:00
INN checkgroups
Author: Derrick Ho
Date: Wed, 17 Jul 1996 00:00
Date: Wed, 17 Jul 1996 00:00
15 lines
998 bytes
998 bytes
Hi:
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.
Regards,
D. Ho
dho@asic.mtv.nec.com
Re: INN checkgroups
Author: Shane Castle
Date: Thu, 18 Jul 1996 00:00
Date: Thu, 18 Jul 1996 00:00
93 lines
4543 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads