Xref: utzoo news.software.b:4852 alt.config:2116 Path: utzoo!attcan!ncrcan!becker!geac!censor!comspec!tvcent!lethe!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!apple!amdcad.amd.com!cdr From: cdr@bach.amd.com (Carl Rigney) Newsgroups: news.software.b,alt.config Subject: Another admins's solution to alt.sewer (needs c news) Keywords: cnews patch for newgroup Message-ID: <1990May7.041121.18259@bach.amd.com> Date: 7 May 90 04:11:21 GMT References: <1990May6.183614.19521@decwrl.dec.com> Organization: Advanced Micro Devices; Sunnyvale, CA Lines: 35 Here's a similar patch - it silently rejects alt newgroups more than 3 levels deep, and sends all other alt newsgroups to the news administrator. I thought about adding a decision based on who its from, but that can be forged too, so why bother? *** newgroup.old Fri May 4 19:04:52 1990 --- newgroup Fri May 4 19:13:31 1990 *************** *** 1,6 **** --- 1,8 ---- #! /bin/sh # newgroup group flag - create group (4-field version: B-2.10.3+ compatible) # subject to our sys file group pattern + # + # cdr@amd.com 90/5/4 added alt-patch # =()<. ${NEWSCONFIG-@@}>()= . ${NEWSCONFIG-/usr/local/lib/news/bin/config} *************** *** 19,24 **** --- 21,34 ---- SENDER="`grep '^Sender:' $hdr | sed 's/^[^:]*: *//'`" case "$SENDER" in "") SENDER="`grep '^From:' $hdr | sed 's/^[^:]*: *//' `" ;; + esac + + # forward alt groups to admin for manual creation + case "$1" in + alt.*.*.*) exit;; # ignore stupid alt groups + alt.*) echo "addgroup $1 says $SENDER" | mail $NEWSMASTER + exit;; + *) ;; esac greppat="^`echo $1 | sed 's/\./\\\\./g' ` "