Annotation of 43BSD/contrib/nntp/rrn/mbox.saver, revision 1.1.1.1

1.1       root        1: #!/bin/sh
                      2: # : mbox.saver.SH,v 4.3.1.2 85/05/20 15:55:37 lwall Exp $
                      3: # 
                      4: # :    mbox.saver.SH,v $
                      5: # Revision 4.3.1.2  85/05/20  15:55:37  lwall
                      6: # Turned  into $5.
                      7: # 
                      8: # Revision 4.3.1.1  85/05/10  11:35:30  lwall
                      9: # Branch for patches.
                     10: # 
                     11: # Revision 4.3  85/05/01  11:42:51  lwall
                     12: # Baseline for release with 4.3bsd.
                     13: # 
                     14: # 
                     15: #      Arguments:
                     16: #      1 Full name of article (%A)
                     17: #      2 Public news spool directory (%P)
                     18: #      3 Directory of current newsgroup (%c)
                     19: #      4 Article number (%a)
                     20: #      5 Where in article to start (%B)
                     21: #      6 Newsgroup name (%C)
                     22: #      7 Save destination (%b)
                     23: #      8 First line of message, normally From...
                     24: #
                     25: export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0; kill $$)
                     26: 
                     27: ( echo "$8"
                     28:   case "$5" in
                     29:   0) echo "Article $4 of $6:" ;;
                     30:   esac
                     31:   tail +$5c $1 | sed "s/^From/>From/"
                     32:   echo ""
                     33:   echo "" ) >> $7

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.