home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d473
/
cnewssrc
/
cnews_src.lzh
/
relay
/
ctl
/
README.amidos
< prev
next >
Wrap
Text File
|
1990-12-01
|
1KB
|
29 lines
checkgroups:
copy $NEWSCTL/localgroups to $NEWSCTL/newsgroups;
reads <stdin> for article containing "checkgroups" control message.
skip headers;
append article body to $NEWSCTL/newsgroups;
copy $NEWSCTL/newsgroups to $NEWSCTL/newsgroups.bac;
sort $NEWSCTL/newsgroups (output to original filename);
locate our "sys" file entry;
grab just the newsgroup list from field 2;
add "junk" and "control" to all the "field 1"'s from $NEWSCTL/newsgroups;
look for lines which start with zero or more occurences of
something besides a period, followed by a period; or the
pseudo-newsgroup "general".
send result into "gngp -a ..." and from there to "sort -u"
find local newsgroups from `active' file;
compare the results of the last two steps:
files found in first step and not in second should be removed;
files found in second step and not in first should be added;
(perhaps the commands should be email'd to $NEWSMASTER instead
of actually executed -- the SA may not want to add them)
rmgroup:
canonhdr; output to temp file
if no line starts with `Approved:' then remove the temp file and exit 0
look for $1 in $NEWSCTL/active
if not found, remove the temp file and exit 0
extract `Sender:' or `From:' header
send email to $NEWSMASTER which says, "rmgroup $1 says $WHO"