home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # $Id: mbox.saver.SH,v 4.4 1991/09/09 20:23:31 sob Exp sob $
- #
- # $Log: mbox.saver.SH,v $
- # Revision 4.4 1991/09/09 20:23:31 sob
- # release 4.4
- #
- #
- # This software is Copyright 1991 by Stan Barber.
- #
- # Permission is hereby granted to copy, reproduce, redistribute or otherwise
- # use this software as long as: there is no monetary profit gained
- # specifically from the use or reproduction of this software, it is not
- # sold, rented, traded or otherwise marketed, and this copyright notice is
- # included prominently in any copy made.
- #
- # The author make no claims as to the fitness or correctness of this software
- # for any use whatsoever, and it is provided as is. Any use of this software
- # is at the user's own risk.
- #
- # Arguments:
- # 1 Full name of article (%A)
- # 2 Public news spool directory (%P)
- # 3 Directory of current newsgroup (%c)
- # 4 Article number (%a)
- # 5 Where in article to start (%B)
- # 6 Newsgroup name (%C)
- # 7 Save destination (%b)
- # 8 First line of message, normally From...
- #
- export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0; kill $$)
-
- ( /bin/echo "$8"
- if /bin/test "$5" = 0 -a ! "$4" = 0 ; then
- /bin/echo "Article: $4 of $6"
- fi
- /usr/ucb/tail +$5c $1 | /bin/sed "s/^From />From /"
- /bin/echo ""
- /bin/echo "" ) >> $7
-