home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- # sendsys - arrange to 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
-
- canonhdr >/tmp/ctl$$
- what="`egrep '^Message-ID:' /tmp/ctl$$ | awk '{print $2}'`"
- when="`getdate tomorrow`"
- echo "$when $what" >>$NEWSCTL/delayed
-
- SENDER="`newsreply </tmp/ctl$$`"
- echo "$NEWSCTL/sys file will be sent to $SENDER shortly.
- 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
- rm -f /tmp/ctl$$
-