home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume12 / psf2 / part01 / psmbox < prev    next >
Encoding:
Text File  |  1990-05-19  |  603 b   |  29 lines

  1. :
  2. #    Print multiple mail-box files using psf filters
  3.  
  4. #    This prints a file name header with date at the top of 
  5. #    each mailbox page for identification purposes.
  6. #    However, each mailbox print becomes a separate print job...
  7. #
  8. #    The mail may be printed 1-up, 2-up, or 4-up as you see fit.
  9. #    Change the paramter ----+
  10. #                               |
  11. #        pmf "$1" | psf -4x -H "$1" | lp
  12.  
  13. case $# in
  14. 0)    echo "Usage:  $0 mbox mbox ..." 
  15.     exit 0;;
  16. esac
  17.  
  18. while test "$1" != ""
  19. do
  20.     if test -f $1
  21.     then
  22.         pmf "$1" | psf -c 80 -4x -H "$1" | lp
  23.     else
  24.         echo "$0: mail box $1 does not exist."
  25.     fi
  26.     shift
  27. done
  28. exit 0
  29.