home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / rn_4_3_blars.lzh / mbox.saver.SH < prev    next >
Text File  |  1990-08-22  |  1KB  |  48 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. echo "Extracting mbox.saver (with variable substitutions)"
  5. $spitshell >mbox.saver <<!GROK!THIS!
  6. $startsh
  7. # $Header: mbox.saver.SH,v 4.3.2.2 90/03/17 20:44:54 sob Exp $
  8. # $Log:    mbox.saver.SH,v $
  9. # Revision 4.3.2.2  90/03/17  20:44:54  sob
  10. # Modify Article header to place the colon after Article.
  11. # Revision 4.3.2.1  89/11/28  00:05:47  sob
  12. # Branch for RN/RRN combo patches
  13. # Revision 4.3.1.2  85/05/20  15:55:37  lwall
  14. # Turned $5 into \$5.
  15. # Revision 4.3.1.1  85/05/10  11:35:30  lwall
  16. # Branch for patches.
  17. # Revision 4.3  85/05/01  11:42:51  lwall
  18. # Baseline for release with 4.3bsd.
  19. #    Arguments:
  20. #    1 Full name of article (%A)
  21. #    2 Public news spool directory (%P)
  22. #    3 Directory of current newsgroup (%c)
  23. #    4 Article number (%a)
  24. #    5 Where in article to start (%B)
  25. #    6 Newsgroup name (%C)
  26. #    7 Save destination (%b)
  27. #    8 First line of message, normally From...
  28. #
  29. export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh \$0; kill \$\$)
  30.  
  31. ( $echo "\$8"
  32.   case "\$5" in
  33.   0) $echo "Article: \$4 of \$6" ;;
  34.   esac
  35.   $tail +\$5c \$1 | $sed "s/^From />From /"
  36.   $echo ""
  37.   $echo "" ) >> \$7
  38. !GROK!THIS!
  39. $eunicefix mbox.saver
  40. chmod 755 mbox.saver
  41.