home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- # delsendsys - mail sys file to sender identified in stdin's headers
-
- # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
- . ${NEWSCONFIG-/var/lib/news/bin/config}
- export NEWSCTL NEWSBIN NEWSARTS
- PATH=$NEWSCTL/bin:$NEWSBIN/relay:$NEWSBIN:$NEWSPATH ; export PATH
- umask $NEWSUMASK
-
- SENDER="`newsreply`"
- (echo "Subject: response from `newshostname` to your sendsys"; echo "";
- case "$1" in
- "") cat $NEWSCTL/sys ;;
- *) awk -f $NEWSBIN/relay/canonsys.awk $NEWSCTL/sys | egrep "^$1:" ;;
- esac ) | mail "$SENDER"
- echo "$NEWSCTL/sys file has been sent to $SENDER.
- Please remain calm. DON'T PANIC. This is perfectly routine.
- Your sys file is public information by definition.
- This is a requirement of membership in Usenet.
- Please don't waste everyone's time by asking about this on Usenet
- or by harassing the person who sent the sendsys control message." |
- mail $NEWSMASTER
-