home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / ctl / delversion < prev    next >
Text File  |  1994-10-17  |  878b  |  33 lines

  1. #! /bin/sh
  2. # delversion - mail version to sender identified in stdin's headers
  3.  
  4. # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
  5. . ${NEWSCONFIG-/etc/news/bin/config}
  6.  
  7. PATH=$NEWSCTL/bin:$NEWSBIN/relay:$NEWSBIN:$NEWSPATH ; export PATH
  8. umask $NEWSUMASK
  9.  
  10. replyto="`newsreply`"
  11. if test -r $NEWSCTL/versionname
  12. then
  13.     it="`cat $NEWSCTL/versionname`"
  14. else
  15.     it='cleanup release'
  16. fi
  17.  
  18. (
  19.     echo "To: $replyto"
  20.     echo "Subject: response from `newshostname` to your version request"
  21.     echo
  22.     echo "C, $it"
  23. ) | mail "$replyto"
  24.  
  25. report 'version processed' <<!
  26. News version number has been sent to $replyto.
  27. Please remain calm.  DON'T PANIC.  This is perfectly routine.
  28. Your version number is public information by definition.
  29. This is a requirement of membership in Usenet.
  30. Please don't waste everyone's time by asking about this on Usenet
  31. or by harassing the person who sent the version control message.
  32. !
  33.