Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!rutgers!apple!oliveb!amdahl!drivax!news From: news@drivax.UUCP (Wayne Davison) Newsgroups: news.software.b Subject: newgroup avalanche protection Message-ID: <2508034F.5C72@drivax.UUCP> Date: 8 Sep 89 18:22:06 GMT Reply-To: davison@drivax.UUCP (Wayne Davison) Organization: Digital Research, Monterey CA Lines: 30 The recent rash of bogus newgroup messages has reminded me that I'm glad I made a change to my newgroup script file (in C news) to totally ignore messages that were approved by above-user@above-host. The change is very simple: *** newgroup.orig Wed Aug 23 14:57:07 1989 --- newgroup Wed Aug 23 17:07:27 1989 *************** *** 14,20 **** cat >$F # unapproved ctl msg? then quit ! grep -s '^Approved:' $F >/dev/null || { rm -f $F; exit 0; } SENDER="`grep '^Sender:' $F | sed 's/^[^:]*: *//'`" case "$SENDER" in --- 14,23 ---- cat >$F # unapproved ctl msg? then quit ! APPROVER="`grep '^Approved:' $F | sed 's/^[^:]*: *//'`" ! case "$APPROVER" in ! ""|above-user@above-host) rm -f $F; exit 0;; ! esac SENDER="`grep '^Sender:' $F | sed 's/^[^:]*: *//'`" case "$SENDER" in -- Wayne Davison \ /| / /| \/ /| /(_) davison@drivax.UUCP (_)/ |/ /\| / / |/ \ ...!amdahl!drivax!davison