home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume14 / mp-2.4.5 / patch04 < prev    next >
Text File  |  1990-09-20  |  29KB  |  1,030 lines

  1. Newsgroups: comp.sources.misc
  2. X-UNIX-From: rburridge@Sun.COM
  3. subject: v14i099: Official patch #9 for mp v2.4; please apply it.
  4. from: rburridge@Sun.COM (Rich Burridge)
  5. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  6.  
  7. Posting-number: Volume 14, Issue 99
  8. Submitted-by: rburridge@Sun.COM (Rich Burridge)
  9. Archive-name: mp-2.4.5/patch04
  10.  
  11. Mp is a Postscript pretty printer for mail,news and ordinary files.
  12.  
  13. This is official patch #9 for mp v2.4.
  14.  
  15. ** Mp v2.4 was posted to comp.sources.misc two weeks ago at patchlevel #5. **
  16.  
  17. It makes the following changes:
  18.  
  19.     *  From Paul Eggert <eggert@twinsun.com>
  20.        From Larry W. Virden <lwv27%cas.BITNET@CUNYVM.CUNY.Edu>
  21.        From Rick Rodgers <rodgers@maxwell.mmwb.ucsf.EDU>
  22.        The SunOS v4.1 /bin/make doesn't like blank lines half way through a
  23.        Makefile rule.
  24.  
  25.     *  From Larry W. Virden <lwv27%cas.BITNET@CUNYVM.CUNY.Edu>
  26.        The SYSV definition was not added to the CFLAGS line in Makefile.dist.
  27.        It also needs to be added to the section in the README file, that
  28.        describes settable Makefile definitions.
  29.  
  30.     *  From Rick Gunderson <rickg@toshiba.tic.oz.au>
  31.        The mp.pro.ps file won't center the page number in the gray bar if
  32.        ``leftedge'' is non-zero. We set left-edge to 0.5 inches so that there
  33.        is a margin at the left of the page for punched holes.
  34.  
  35.     *  From Larry W. Virden <lwv27%cas.BITNET@CUNYVM.CUNY.Edu>
  36.        Some slight changes to the mailp shell script for -s subject handling.
  37.  
  38.     *  From Larry W. Virden <lwv27%cas.BITNET@CUNYVM.CUNY.Edu>
  39.        From Rick Rodgers <rodgers@maxwell.mmwb.ucsf.EDU>
  40.        Some adjustments to the mp manual pages.
  41.  
  42.     *  From Peter Collinson <pc@hillside.co.uk>
  43.        I have my own machine and printer and KNOW that the mail is for
  44.        me.. I would like to have the header say
  45.  
  46.                 Mail from ........
  47.  
  48.        The -F flag has been added for this option. The manual page has also
  49.        been updated.
  50.  
  51. Apply the patch with Larry Wall's patch program. Copy Makefile.dist to
  52. Makefile and adjust for your site. Then do a "make". Check the paper size
  53. in each of the prologue files that you use is correct for your site (US
  54. Letter or A4), then do a "make install". You might wish to reread the
  55. installation section in the README file to make sure you've adjusted
  56. everything in the Makefile that you need to.
  57.  
  58. If you need to get patches 6-8, then they can be obtained from the automatic
  59. mail archive server, by sending a message to rb-archive-server@Aus.Sun.COM
  60. containing the line:
  61.  
  62. send mp patchn
  63.  
  64. where n is the patch number you require.
  65.  
  66. If this is all getting too confusing for you, then the latest complete mp
  67. distribution can be obtained from the same address, by sending a message
  68. containing the lines:
  69.  
  70. send mp part1
  71. send mp part2
  72.  
  73. If the mail is likely to go back through any sites that impose a size limit,
  74. then I suggest you divide the above request up into two separate mail
  75. messages.
  76.  
  77. You can also include a path line in these requests to indicate the mail
  78. path that the archive server should use to send the files to you. Such a
  79. path line could be:
  80.  
  81. path uunet.uu.net!hostname!user
  82.  
  83. Note that this is uunet.uu.net and not just uunet. Sun.COM doesn't recognise
  84. just uunet.
  85.  
  86. [NOTE: When unpacking the shars generated by the automatic mail service,
  87.        it is possible you will get error messages for incorrect length.
  88.        Please ignore; hopefully the files should still unpack correctly.
  89.        I'm currently looking into this problem].
  90.  
  91. Rich Burridge,          DOMAIN: richb@Aus.Sun.COM
  92. Sun Microsystems.       ACSNET: richb@sunaus.sun.oz
  93. PHONE: +61 2 413 2666   UUCP:   {uunet,mcvax,ukc}!munnari!sunaus.oz!richb
  94.  
  95. ------CUT HERE------patch.9------CUT HERE------
  96.  
  97. ------- README -------
  98. *** /tmp/da06432    Mon Sep 17 09:41:09 1990
  99. --- README    Mon Sep 17 09:05:32 1990
  100. ***************
  101. *** 52,57 ****
  102. --- 52,58 ----
  103.   GECOSLENGTH - Maximum number of characters extracted from the gecos field.
  104.   NOINDEX     - uncomment if you don't have the index() function.
  105.   PROLOGUE    - Location of the mp prologue file (default: /usr/local/lib)
  106. + SYSV        - uncomment if you are running Unix System V.
  107.   
  108.   See the Makefile for a detailed description of each of these definitions.
  109.   
  110. ***************
  111. *** 152,159 ****
  112.   Maureen Chew, Brian Kohn, Walter Underwood, Mike Khaw, Rick Gunderson, Johan
  113.   Vromans, Brachet, Pierre Mareschal, Roger Riggs, Larry Tsui, Mike Bundschuh,
  114.   Amos Shapir, Bruce G Barnett, Pauline van Winsen, James F. Blake, Bruno
  115. ! Pillard, Rainer Klute, Ran Ever-Hadani, Lupe Christoph, John Little and
  116. ! Bill Houle for bug reports and/or bug fixes plus enhancements.
  117.   
  118.   My thanks also goes to Glenn Reid from Adobe Systems for the backspacefont.ps
  119.   code used in the prologue files. I'm grateful to all these people, plus
  120. --- 153,161 ----
  121.   Maureen Chew, Brian Kohn, Walter Underwood, Mike Khaw, Rick Gunderson, Johan
  122.   Vromans, Brachet, Pierre Mareschal, Roger Riggs, Larry Tsui, Mike Bundschuh,
  123.   Amos Shapir, Bruce G Barnett, Pauline van Winsen, James F. Blake, Bruno
  124. ! Pillard, Rainer Klute, Ran Ever-Hadani, Lupe Christoph, John Little, Bill
  125. ! Houle, Paul Eggert, Larry W. Virden and Peter Collinson for bug reports
  126. ! and/or bug fixes plus enhancements.
  127.   
  128.   My thanks also goes to Glenn Reid from Adobe Systems for the backspacefont.ps
  129.   code used in the prologue files. I'm grateful to all these people, plus
  130.  
  131. ------- mp.pro.ps -------
  132. *** /tmp/da06435    Mon Sep 17 09:41:09 1990
  133. --- mp.pro.ps    Mon Sep 17 08:16:25 1990
  134. ***************
  135. *** 99,105 ****
  136.       rightedge 50 sub topedge 36 sub    % top rt corner
  137.       graybox
  138.       newpath
  139. !       rightedge leftedge sub 2 div topedge 46 sub 15 0 360 arc
  140.         gsave
  141.           1 setgray fill
  142.         grestore
  143. --- 99,105 ----
  144.       rightedge 50 sub topedge 36 sub    % top rt corner
  145.       graybox
  146.       newpath
  147. !       leftedge rightedge leftedge sub 2 div add topedge 46 sub 15 0 360 arc
  148.         gsave
  149.           1 setgray fill
  150.         grestore
  151. ***************
  152. *** 115,121 ****
  153.       fontN
  154.       dup stringwidth
  155.          topedge 52 sub exch sub                % y-centered
  156. !        exch 2 div rightedge leftedge sub 2 div exch sub    % x-centered
  157.          exch moveto show
  158.       fontH
  159.       leftedge 50 add bottomedge 50 add    % bottom lt corner
  160. --- 115,122 ----
  161.       fontN
  162.       dup stringwidth
  163.          topedge 52 sub exch sub                % y-centered
  164. !        exch 2 div rightedge leftedge sub 2 div exch sub
  165. !        leftedge add                    % x-centered
  166.          exch moveto show
  167.       fontH
  168.       leftedge 50 add bottomedge 50 add    % bottom lt corner
  169.  
  170. ------- mp.1 -------
  171. *** /tmp/da06438    Mon Sep 17 09:41:10 1990
  172. --- mp.1    Mon Sep 17 09:35:58 1990
  173. ***************
  174. *** 1,80 ****
  175. ! .\" %Z%%M% %I% %E%
  176.   .TH MP 1L "14 September 1990"
  177.   .SH NAME
  178. ! mp \- Postscript pretty printer
  179.   .SH SYNOPSIS
  180.   .B mp
  181.   [
  182.   .B \-a
  183. ! ]
  184. ! [
  185.   .B \-d
  186. ! ]
  187. ! [
  188.   .B \-f
  189. ! ]
  190. ! [
  191.   .B \-l
  192. ! ]
  193. ! [
  194.   .B \-m
  195. ! ]
  196. ! [
  197.   .B \-o
  198. ! ]
  199. ! [
  200.   .B \-p
  201.   .I prologue
  202. ! ]
  203. ! [
  204.   .B \-s
  205.   .I subject
  206. ! ]
  207. ! [
  208.   .B \-tm
  209. ! ]
  210. ! [
  211.   .B \-ts
  212. ! ]
  213. ! [
  214.   .B \-v
  215. ! ]
  216. ! [
  217.   .B \-?
  218. ! ]
  219. ! [
  220.   .IR filename .\|.\|.
  221.   ]
  222.   .SH DESCRIPTION
  223. ! .B mp
  224. ! will read each
  225.   .I filename
  226. ! in sequence and generate a Postscript file on standard output,
  227. ! which is a pretty print of the original. If no filename argument is given
  228. ! .B mp
  229. ! reads from the standard input. If the standard input is a terminal, input
  230. ! is terminated by an
  231.   .SM EOF
  232.   signal, usually
  233.   .SM CTRL-D\s0.
  234.   .LP
  235. ! The input files to
  236. ! .B mp
  237. ! can be mail items, news articles or ordinary ASCII files. It is also
  238. ! possible to print out complete mail folders and digests.
  239. ! .PP
  240. ! The format adopted has textured areas containing banner information
  241.   at the top and bottom of every page.
  242. ! .PP
  243. ! .B mp
  244. ! was originally designed to be used in conjunction with the print
  245. ! button in the
  246. ! .B "mailtool (1)"
  247. ! program, or the
  248. ! .B pipe
  249. ! command from within mail. Add (or alter) the following two line in your
  250. ! .B .mailrc
  251.   file:
  252.   .in +1.0i
  253.   .nf
  254.   \fCset printmail='mp | lpr'
  255. --- 1,73 ----
  256. ! .\" @(#)mp.1 1.13 90/04/12
  257.   .TH MP 1L "14 September 1990"
  258. + .ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2
  259.   .SH NAME
  260. ! mp \- POSTSCRIPT pretty printer
  261.   .SH SYNOPSIS
  262.   .B mp
  263.   [
  264. + .B \-F
  265. + ] [
  266.   .B \-a
  267. ! ] [
  268.   .B \-d
  269. ! ] [
  270.   .B \-f
  271. ! ] [
  272.   .B \-l
  273. ! ] [
  274.   .B \-m
  275. ! ] [
  276.   .B \-o
  277. ! ] [
  278.   .B \-p
  279.   .I prologue
  280. ! ] [
  281.   .B \-s
  282.   .I subject
  283. ! ] [
  284.   .B \-tm
  285. ! ] [
  286.   .B \-ts
  287. ! ] [
  288.   .B \-v
  289. ! ] [
  290.   .B \-?
  291. ! ] [
  292.   .IR filename .\|.\|.
  293.   ]
  294.   .SH DESCRIPTION
  295. ! The
  296. ! .I mp
  297. ! program reads each
  298.   .I filename
  299. ! in sequence and generates a prettified version of the contents in
  300. ! \*(Ps format, sent to standard output.
  301. ! If no filename argument is provided,
  302. ! .I mp
  303. ! reads the standard input.
  304. ! If the standard input is a terminal, input is terminated by an
  305.   .SM EOF
  306.   signal, usually
  307.   .SM CTRL-D\s0.
  308.   .LP
  309. ! Mail items, news articles, ordinary ASCII files, complete mail folders,
  310. ! and digests are all acceptable input formats for
  311. ! .IR mp .
  312. ! The output format includes grayscale lozenges containing banner information
  313.   at the top and bottom of every page.
  314. ! .LP
  315. ! The program is conveniently used in conjunction with the print button of the
  316. ! .RI SunView/ xnews (1)
  317. ! .IR mailtool (1)
  318. ! programs, or the
  319. ! .I pipe
  320. ! command provided by
  321. ! .IR mail (1).
  322. ! Add the following two lines to your
  323. ! .I .mailrc
  324.   file:
  325. + .br
  326.   .in +1.0i
  327.   .nf
  328.   \fCset printmail='mp | lpr'
  329. ***************
  330. *** 81,94 ****
  331.   set cmd="mp | lpr &"\fP
  332.   .fi
  333.   .in -1.0i
  334. ! .PP
  335.   Source the
  336. ! .B .mailrc
  337. ! file again, and you are ready.
  338. ! .PP
  339. ! A useful alias to use used in conjunction with your
  340.   .I .cshrc
  341. ! file for printing out ordinary text files is:
  342.   .in +1.0i
  343.   .nf
  344.   \fCalias print 'mp -o -s "\\!*" <\\!* | lpr'\fP
  345. --- 74,88 ----
  346.   set cmd="mp | lpr &"\fP
  347.   .fi
  348.   .in -1.0i
  349. ! .LP
  350.   Source the
  351. ! .I .mailrc
  352. ! file, and you are ready to use
  353. ! .IR mp .
  354. ! For printing ordinary ASCII files, the following alias (to be placed in your
  355.   .I .cshrc
  356. ! file) may also prove useful:
  357. ! .br
  358.   .in +1.0i
  359.   .nf
  360.   \fCalias print 'mp -o -s "\\!*" <\\!* | lpr'\fP
  361. ***************
  362. *** 96,237 ****
  363.   .in -1.0i
  364.   .SH OPTIONS
  365.   .TP
  366.   .B \-a
  367. ! The file on standard input is a news article, and should be printed with
  368.   "Article from
  369.   .I newsgroup
  370. ! " in the top banner, where
  371.   .I newsgroup
  372.   is the first news group found on the Newsgroups: line.
  373.   .TP
  374.   .B \-d
  375. ! The file on standard input is a digest so print accordingly.
  376.   .TP
  377.   .B \-f
  378. ! The file on standard input is printed specifically for use with the
  379. ! Filofax personal organiser.
  380.   .TP
  381.   .B \-l
  382. ! Prints output in landscape mode. Two pages of text will be printed per
  383. ! sheet of paper.
  384.   .TP
  385.   .B \-m
  386. ! The file on standard input is a mail folder, so print out multiple messages.
  387.   .TP
  388.   .B \-o
  389. ! The file on standard input is an ASCII file so print accordingly.
  390.   .TP
  391. ! .BI \-p " prologue filename"
  392. ! Employ
  393. ! .I "prologue filename"
  394. ! as the Postscript prologue file. This overrides any previously defined
  395. ! prologue values.
  396. ! The
  397. ! .I mp
  398. ! prologue file is determined by first looking for the environment variable
  399. ! .IR MP_PROLOGUE .
  400. ! This will be the directory where the mp prologue files are to be found.
  401. ! Five different prologue files are used. Normally the prologue file is
  402. ! .I mp.pro.ps
  403. ! but if the
  404. ! .I \-f
  405. ! option is used, then the prologue file is called
  406. ! .I mp.pro.filofax.ps
  407. ! or if the
  408. ! .I \-tm
  409. ! option is used, then the prologue file is
  410. ! .I mp.pro.timeman.ps
  411. ! or if the
  412. ! .I \-ts
  413. ! option is used, then the prologue file is
  414. ! .I mp.pro.timesys.ps.
  415. ! There is an alternative "standard" prologue file called
  416. ! .I mp.pro.alt.ps
  417. ! which outputs the page number in the right corner of the bottom banner.
  418. ! If
  419. ! .I MP_PROLOGUE
  420. ! isn't found, then the default location is used. The default location is
  421. ! .IR /usr/local/lib/mp.pro.ps .
  422.   .TP
  423.   .BI \-s " subject"
  424.   Use
  425.   .I " subject"
  426. ! as the new subject for the printout. If you are printing ordinary text
  427.   files which have been specified on the command line, the the subject will
  428.   default to the name of each of these files.
  429.   .TP
  430.   .B \-tm
  431. ! The file on standard input is printed specifically for use with the
  432. ! Time Manager personal organiser.
  433.   .TP
  434.   .B \-ts
  435. ! The file on standard input is printed specifically for use with the
  436. ! Time/System International personal organiser.
  437.   .TP
  438.   .B \-v
  439. ! Print the version number of this release of the
  440. ! .B mp
  441. ! program.
  442.   .TP
  443.   .B \-?
  444. ! Print the usage line for this program. Note that the
  445.   .B ?
  446. ! character should be escaped if running from
  447. ! .BR csh (1).
  448.   .SH FILES
  449.   .TP
  450. ! .B /usr/local/bin/mp
  451.   executable
  452.   .TP
  453. ! .B /usr/local/lib/mp.pro.ps
  454. ! PostScript prologue to define required vocabulary for mail printing.
  455. ! Editing this file will allow you to introduce some stylistic variation
  456. ! in the printing of mail.
  457.   .TP
  458. ! .B /usr/local/lib/mp.pro.l.ps
  459. ! The PostScript prologue file for outputing in landscape format.
  460.   .TP
  461. ! .B /usr/local/lib/mp.pro.alt.ps
  462. ! An alternative "standard" PostScript prologue file which outputs page
  463. ! numbers in the bottom right corner of each page.
  464.   .TP
  465. ! .B /usr/local/lib/mp.pro.filofax.ps
  466. ! Postscript prologue used to print out files in Filofax format.
  467.   .TP
  468. ! .B /usr/local/lib/mp.pro.timeman.ps
  469. ! PostScript prologue used to print out files in Time Manager format.
  470.   .TP
  471. ! .B /usr/local/lib/mp.pro.timesys.ps
  472. ! PostScript prologue used to print out files in Time/System International
  473.   format.
  474.   .SH "SEE ALSO"
  475. ! mail(1)
  476.   .SH AUTHORS
  477.   Original version by Steve Holden.
  478. ! .PP
  479. ! Converted to C, modified and maintained by Rich Burridge, Sun Microsystems Australia,
  480. ! .PP
  481.   Original modified to handle net news articles and MH mail by Bruno Pillard, Chorus Systemes, France,
  482. ! .PP
  483.   Handling of mail digests added by Dave Glowacki of Public Works Computer Services, St Paul, MN.
  484. ! .PP
  485. ! Manual page for the initial version revised by Rick Rodgers, UCSF School of Pharmacy, San Francicso.
  486. ! .PP
  487.   Support for Personal Organiser printing style added by Douglas Buchanan,
  488.   Sun Microsystems Europe.
  489. ! .PP
  490.   Substantial modifications to header parsing by Jeremy Webber,
  491.   Computer Science Department, University of Adelaide, Australia.
  492. ! .PP
  493.   Support for printing multiple files and subject line filename print for
  494. ! ordinary files added by Sam Manoharan, Edinburgh University.
  495. ! .PP
  496.   Support for landscape mode written by Michael Tuciarone.
  497. ! .PP
  498. ! Revision of the PostScript structuring and the way that the prologue files
  499.   are handled was included by Johan Vromans
  500. ! .PP
  501.   Rich Burridge,             Domain: richb@Aus.Sun.COM
  502.   .nf
  503.   PHONE: +61 2 413 2666   Path: {uunet,mcvax,ukc}!munnari!sunaus.oz!richb
  504.   .fi
  505. --- 90,257 ----
  506.   .in -1.0i
  507.   .SH OPTIONS
  508.   .TP
  509. + .B \-F
  510. + Instead of printing who the mail article is for, the top header will
  511. + contain who the mail article is from. A useful option for people with
  512. + their own personal printer.
  513. + .TP
  514.   .B \-a
  515. ! Format the file as a news article.
  516. ! The top banner contains the text:
  517.   "Article from
  518.   .I newsgroup
  519. ! ", where
  520.   .I newsgroup
  521.   is the first news group found on the Newsgroups: line.
  522.   .TP
  523.   .B \-d
  524. ! Format the file as a digest.
  525.   .TP
  526.   .B \-f
  527. ! Format the file for use with a Filofax personal organiser.
  528.   .TP
  529.   .B \-l
  530. ! Format output in landscape mode.
  531. ! Two pages of text will be printed per sheet of paper.
  532.   .TP
  533.   .B \-m
  534. ! Format the file as a mail folder, printing multiple messages.
  535.   .TP
  536.   .B \-o
  537. ! Format the file as an ordinary ASCII file.
  538.   .TP
  539. ! .BI \-p " prologue"
  540. ! Employ the file
  541. ! .I prologue
  542. ! as the \*(Ps prologue file,
  543. ! overriding any previously defined file names.
  544.   .TP
  545.   .BI \-s " subject"
  546.   Use
  547.   .I " subject"
  548. ! as the new subject for the printout. If you are printing ordinary ASCII
  549.   files which have been specified on the command line, the the subject will
  550.   default to the name of each of these files.
  551.   .TP
  552.   .B \-tm
  553. ! Format the file for use with the Time Manager personal organiser.
  554.   .TP
  555.   .B \-ts
  556. ! format the file for use with the Time/System International personal organiser.
  557.   .TP
  558.   .B \-v
  559. ! Print the version number of this release of
  560. ! .IR mp .
  561.   .TP
  562.   .B \-?
  563. ! Print the usage line for
  564. ! .I mp
  565. ! (note that the
  566.   .B ?
  567. ! character must be escaped if using
  568. ! .IR csh (1)).
  569. ! .SH "ENVIRONMENT VARIABLES"
  570. ! The
  571. ! .I mp
  572. ! prologue file is determined by first looking for the environment variable
  573. ! .IR MP_PROLOGUE ,
  574. ! which specifies the directory where
  575. ! .I mp
  576. ! prologue files are to be found.
  577. ! If
  578. ! .I MP_PROLOGUE
  579. ! is not found, then the default directory is assumed
  580. ! .RI ( /usr/local/lib/mp.pro.ps ).
  581. ! .SH "SUPPLIED PROLOGUE FILES"
  582. ! Five different prologue files are provided:
  583. ! .RS
  584. ! .TP
  585. ! .I mp.pro.ps
  586. ! Used by default
  587. ! .TP
  588. ! .I mp.pro.filofax.ps
  589. ! Used if the
  590. ! .B \-f
  591. ! option is in effect
  592. ! .TP
  593. ! .I mp.pro.timeman.ps
  594. ! Used if the
  595. ! .B \-tm
  596. ! option is in effect
  597. ! .TP
  598. ! .I mp.pro.timesys.ps
  599. ! Used if the
  600. ! .B \-ts
  601. ! option is in effect
  602. ! .TP
  603. ! .I mp.pro.alt.ps
  604. ! An alternative modification of the default prologue file which outputs the
  605. ! page number in the right corner of the bottom banner.
  606. ! .RE
  607.   .SH FILES
  608.   .TP
  609. ! .I .cshrc
  610. ! initialization file for
  611. ! .IR csh (1)
  612. ! .TP
  613. ! .I .mailrc
  614. ! initialization file for
  615. ! .IR mail (1)
  616. ! .TP
  617. ! .I /usr/local/bin/mp
  618.   executable
  619.   .TP
  620. ! .I /usr/local/lib/mp.pro.ps
  621. ! \*(Ps prologue for mail printing
  622.   .TP
  623. ! .I /usr/local/lib/mp.pro.l.ps
  624. ! \*(Ps prologue for landscape format
  625.   .TP
  626. ! .I /usr/local/lib/mp.pro.alt.ps
  627. ! alternative "default" \*(Ps prologue, inserts page
  628. ! numbers in the bottom right corner of each page
  629.   .TP
  630. ! .I /usr/local/lib/mp.pro.filofax.ps
  631. ! \*(Ps prologue for Filofax format
  632.   .TP
  633. ! .I /usr/local/lib/mp.pro.timeman.ps
  634. ! \*(Ps prologue for Time Manager format
  635.   .TP
  636. ! .I /usr/local/lib/mp.pro.timesys.ps
  637. ! \*(Ps prologue for Time/System International
  638.   format.
  639.   .SH "SEE ALSO"
  640. ! mail(1),
  641. ! mailtool(1),
  642. ! xnews(1)
  643.   .SH AUTHORS
  644.   Original version by Steve Holden.
  645. ! .LP
  646. ! Converted to C, modified and maintained by Rich Burridge, Sun Microsystems,
  647. ! Australia.
  648. ! .LP
  649.   Original modified to handle net news articles and MH mail by Bruno Pillard, Chorus Systemes, France,
  650. ! .LP
  651.   Handling of mail digests added by Dave Glowacki of Public Works Computer Services, St Paul, MN.
  652. ! .LP
  653. ! Manual page revised by Rick Rodgers, UCSF School of Pharmacy, San Francicso.
  654. ! .LP
  655.   Support for Personal Organiser printing style added by Douglas Buchanan,
  656.   Sun Microsystems Europe.
  657. ! .LP
  658.   Substantial modifications to header parsing by Jeremy Webber,
  659.   Computer Science Department, University of Adelaide, Australia.
  660. ! .LP
  661.   Support for printing multiple files and subject line filename print for
  662. ! ordinary ASCII files added by Sam Manoharan, Edinburgh University.
  663. ! .LP
  664.   Support for landscape mode written by Michael Tuciarone.
  665. ! .LP
  666. ! Revision of the \*(Ps structuring and the way that the prologue files
  667.   are handled was included by Johan Vromans
  668. ! .LP
  669.   Rich Burridge,             Domain: richb@Aus.Sun.COM
  670.   .nf
  671.   PHONE: +61 2 413 2666   Path: {uunet,mcvax,ukc}!munnari!sunaus.oz!richb
  672.   .fi
  673. + .\" end of man page
  674.  
  675. ------- mailp -------
  676. *** /tmp/da06441    Mon Sep 17 09:41:11 1990
  677. --- mailp    Mon Sep 17 09:19:30 1990
  678. ***************
  679. *** 8,23 ****
  680.   #
  681.   #  Original: Bruno Pillard - October 1988.
  682.   #  Modified: Rich Burridge - June 1989.
  683. - #
  684.   
  685.   BIN=/usr/local/bin
  686.   
  687.   FLAG=''
  688.   case $0 in
  689. !     *mailp)    PROG=mp       ;; 
  690.       *newsp)       PROG="mp -a"  ;;
  691.       *digestp)  PROG="mp -d"     ;;
  692. !     *filep)       PROG="mp -o"  FLAG='-s $1' ;;
  693.       *filofaxp) PROG="mp -f"     ;;
  694.       *timemanp) PROG="mp -tm" ;;
  695.       *timesysp) PROG="mp -ts" ;;
  696. --- 8,22 ----
  697.   #
  698.   #  Original: Bruno Pillard - October 1988.
  699.   #  Modified: Rich Burridge - June 1989.
  700.   
  701.   BIN=/usr/local/bin
  702.   
  703.   FLAG=''
  704.   case $0 in
  705. !     *mailp)    PROG="mp"     ;; 
  706.       *newsp)       PROG="mp -a"  ;;
  707.       *digestp)  PROG="mp -d"     ;;
  708. !     *filep)       PROG="mp -o"  FLAG='$1' ;;
  709.       *filofaxp) PROG="mp -f"     ;;
  710.       *timemanp) PROG="mp -tm" ;;
  711.       *timesysp) PROG="mp -ts" ;;
  712. ***************
  713. *** 29,35 ****
  714.       case    "$1" in
  715.       -s*)
  716.           if [ "$1" = "-s" ] ; then
  717. !             FLAG="-s $2"
  718.               shift ; shift
  719.           else
  720.               FLAG="$1"
  721. --- 28,34 ----
  722.       case    "$1" in
  723.       -s*)
  724.           if [ "$1" = "-s" ] ; then
  725. !             FLAG="$2"
  726.               shift ; shift
  727.           else
  728.               FLAG="$1"
  729. ***************
  730. *** 36,41 ****
  731. --- 35,43 ----
  732.               shift
  733.           fi
  734.           ;;
  735. +     -F)
  736. +         PROG="$PROG -F"
  737. +         ;;
  738.       * )
  739.           ;;
  740.       esac
  741. ***************
  742. *** 43,50 ****
  743.   
  744.   if    [ $# -eq 0 ]
  745.   then
  746. !     set - " - "
  747. !     FLAG='-s "stdin"'
  748.   fi
  749.   
  750.   #  NOTE: Banner printing is disabled below, by the inclusion of the -h
  751. --- 45,52 ----
  752.   
  753.   if    [ $# -eq 0 ]
  754.   then
  755. !     set --  -
  756. !     FLAG='"stdin"'
  757.   fi
  758.   
  759.   #  NOTE: Banner printing is disabled below, by the inclusion of the -h
  760. ***************
  761. *** 54,59 ****
  762.   
  763.   while [ $# -gt 0 ]
  764.   do
  765. !     /bin/cat $1 | eval ${BIN}/${PROG} $FLAG | lpr -h -P${PRINTER:-ps}
  766.       shift
  767.   done
  768. --- 56,62 ----
  769.   
  770.   while [ $# -gt 0 ]
  771.   do
  772. !     /bin/cat $1 | eval ${BIN}/${PROG} -s $FLAG | \
  773. !               eval lpr -h -J"$FLAG" -P${PRINTER:-ps}
  774.       shift
  775.   done
  776.  
  777. ------- main.c -------
  778. *** /tmp/da06444    Mon Sep 17 09:41:11 1990
  779. --- main.c    Mon Sep 17 09:20:58 1990
  780. ***************
  781. *** 54,59 ****
  782. --- 54,60 ----
  783.   bool digest   = FALSE ;       /* Are we are printing a mail digest (-d) */
  784.   bool folder   = FALSE ;       /* Set if we are printing a mail folder. */
  785.   bool landscape = FALSE ;      /* Set if we are printing in landscape mode. */
  786. + bool print_orig = FALSE ;     /* Print From rather than To in mail header. */
  787.   bool text_doc = FALSE ;       /* Printing normal text (-o) */
  788.    
  789.   /* Header definitions. */
  790.  
  791. ------- misc.c -------
  792. *** /tmp/da06447    Mon Sep 17 09:41:12 1990
  793. --- misc.c    Mon Sep 17 09:32:51 1990
  794. ***************
  795. *** 101,107 ****
  796.   {
  797.     int opch ;
  798.   
  799. !   while ((opch = get_opt(argc, argv, "adflmop:s:tv")) != -1)
  800.       switch (opch)
  801.         {
  802.           case 'a' : article = TRUE ;      /* "Article from" format. */
  803. --- 101,107 ----
  804.   {
  805.     int opch ;
  806.   
  807. !   while ((opch = get_opt(argc, argv, "adfFlmop:s:tv")) != -1)
  808.       switch (opch)
  809.         {
  810.           case 'a' : article = TRUE ;      /* "Article from" format. */
  811. ***************
  812. *** 108,113 ****
  813. --- 108,115 ----
  814.                      break ;
  815.           case 'd' : digest = TRUE ;       /* Print digest. */
  816.                      break ;
  817. +         case 'F' : print_orig = TRUE ;   /* Print originators name. */
  818. +                    break ;
  819.           case 'f' :                       /* Filofax output. */
  820.                      SPRINTF(proname, "%s/mp.pro.filofax.ps", prologue) ;
  821.                      break ;
  822. ***************
  823. *** 241,248 ****
  824.   usage()     /* Print usage message and exit. */
  825.   {
  826.     FPRINTF(stderr, "%s version 2.4.%1d\n\n", progname, PATCHLEVEL) ;
  827. !   FPRINTF(stderr, "Usage: %s [-a] [-d] [-f] [-l] [-m] [-o]\n", progname) ;
  828. !   FPRINTF(stderr, "\t[-p prologue] [-s subject] [-t] [-v] [-?]\n") ;
  829.     exit(1) ;
  830.   }
  831.   
  832. --- 243,251 ----
  833.   usage()     /* Print usage message and exit. */
  834.   {
  835.     FPRINTF(stderr, "%s version 2.4.%1d\n\n", progname, PATCHLEVEL) ;
  836. !   FPRINTF(stderr, "Usage: %s [-F] [-a] [-d] [-f] [-l] [-m] [-o]\n", progname) ;
  837. !   FPRINTF(stderr, "\t[-p prologue] [-s subject] [-tm] [-ts] [-v]\n") ;
  838. !   FPRINTF(stderr, "\t[-?] filename ...\n") ;
  839.     exit(1) ;
  840.   }
  841.   
  842.  
  843. ------- print.c -------
  844. *** /tmp/da06450    Mon Sep 17 09:41:13 1990
  845. --- print.c    Mon Sep 17 09:27:45 1990
  846. ***************
  847. *** 118,123 ****
  848. --- 118,125 ----
  849.   
  850.     if (article == TRUE)
  851.       STRCPY(message_for, "Article from") ;             /* MailFor. */
  852. +   else if (print_orig == TRUE)
  853. +     STRCPY(message_for, "From") ;
  854.     psdef("MailFor", message_for) ;
  855.   
  856.     if (article == TRUE && newsgroups != NULL)          /* User. */
  857. ***************
  858. *** 129,134 ****
  859. --- 131,144 ----
  860.         STRNCPY(owner, newsgroups, i) ;
  861.         owner[i] = '\0' ;
  862.       }
  863. +   else if (print_orig == TRUE)
  864. +     {
  865. +       i = strlen(from) ;
  866. +       owner = (char *) realloc(owner, (unsigned int) i) ;
  867. +       STRNCPY(owner, from, i) ;
  868. +       owner[i] = '\0' ;
  869. +     }
  870.     psdef("User", owner) ;
  871.    
  872.     do_date() ;                                         /* TimeNow. */
  873.  
  874. ------- CHANGES -------
  875. *** /tmp/da06453    Mon Sep 17 09:41:13 1990
  876. --- CHANGES    Mon Sep 17 08:48:42 1990
  877. ***************
  878. *** 277,279 ****
  879. --- 277,313 ----
  880.          [For now, I've detailed this problem in the TODO file. When the next
  881.           version of mp is released, I'll make sure that all the filenames are
  882.           below 14 characters - Rich].
  883. + v2.4 - patchlevel 9. - 17th September 1990.
  884. +     *  From Paul Eggert <eggert@twinsun.com>
  885. +        From Larry W. Virden <lwv27%cas.BITNET@CUNYVM.CUNY.Edu>
  886. +        From Rick Rodgers <rodgers@maxwell.mmwb.ucsf.EDU>
  887. +        The SunOS v4.1 /bin/make doesn't like blank lines half way through a
  888. +        Makefile rule.
  889. +     *  From Larry W. Virden <lwv27%cas.BITNET@CUNYVM.CUNY.Edu>
  890. +        The SYSV definition was not added to the CFLAGS line in Makefile.dist.
  891. +        It also needs to be added to the section in the README file, that
  892. +        describes settable Makefile definitions.
  893. +     *  From Rick Gunderson <rickg@toshiba.tic.oz.au>
  894. +        The mp.pro.ps file won't center the page number in the gray bar if
  895. +        ``leftedge'' is non-zero. We set left-edge to 0.5 inches so that there
  896. +        is a margin at the left of the page for punched holes.
  897. +     *  From Larry W. Virden <lwv27%cas.BITNET@CUNYVM.CUNY.Edu>
  898. +        Some slight changes to the mailp shell script for -s subject handling.
  899. +     *  From Larry W. Virden <lwv27%cas.BITNET@CUNYVM.CUNY.Edu>
  900. +        From Rick Rodgers <rodgers@maxwell.mmwb.ucsf.EDU>
  901. +        Some adjustments to the mp manual pages.
  902. +     *  From Peter Collinson <pc@hillside.co.uk>
  903. +        I have my own machine and printer and KNOW that the mail is for
  904. +        me.. I would like to have the header say
  905. +                 Mail from ........
  906. +        The -F flag has been added for this option. The manual page has also
  907. +        been updated.
  908.  
  909. ------- patchlevel.h -------
  910. *** /tmp/da06456    Mon Sep 17 09:41:14 1990
  911. --- patchlevel.h    Mon Sep 17 07:51:15 1990
  912. ***************
  913. *** 14,17 ****
  914.    *  reported to me then an attempt will be made to fix them.
  915.    */
  916.   
  917. ! #define  PATCHLEVEL  8
  918. --- 14,17 ----
  919.    *  reported to me then an attempt will be made to fix them.
  920.    */
  921.   
  922. ! #define  PATCHLEVEL  9
  923.  
  924. ------- extern.h -------
  925. *** /tmp/da06459    Mon Sep 17 09:41:14 1990
  926. --- extern.h    Mon Sep 17 09:16:02 1990
  927. ***************
  928. *** 63,68 ****
  929. --- 63,69 ----
  930.   extern bool digest ;         /* Are we are printing a mail digest (-d) */
  931.   extern bool folder ;         /* Set if we are printing a mail folder. */
  932.   extern bool landscape ;      /* Set if we are printing in landscape mode. */
  933. + extern bool print_orig ;     /* Print originators name rather then Mail for. */
  934.   extern bool text_doc ;       /* Printing normal text (-o) */
  935.   
  936.   extern bool end_of_file ;    /* EOF indicator */
  937.  
  938. ------- Makefile.dist -------
  939. *** /tmp/da06462    Mon Sep 17 09:41:15 1990
  940. --- Makefile.dist    Mon Sep 17 07:58:25 1990
  941. ***************
  942. *** 67,73 ****
  943.   #---------------------------------------------------------------------
  944.   #  Compilation flags and standard macro definitions.
  945.   #
  946. ! CFLAGS   = -g $(GECOSFIELDS) $(GECOSLENGTH) $(NOINDEX) $(PROLOGUE)
  947.   LDFLAGS  =
  948.   #=================================================================
  949.   
  950. --- 67,73 ----
  951.   #---------------------------------------------------------------------
  952.   #  Compilation flags and standard macro definitions.
  953.   #
  954. ! CFLAGS   = -g $(GECOSFIELDS) $(GECOSLENGTH) $(NOINDEX) $(PROLOGUE) $(SYSV)
  955.   LDFLAGS  =
  956.   #=================================================================
  957.   
  958. ***************
  959. *** 112,122 ****
  960.          -install -c -m 644 mp.pro.timeman.ps $(LIBDIR)
  961.          -install -c -m 644 mp.pro.timesys.ps $(LIBDIR)
  962.          -install -c -m 755 mailp $(BINDIR)
  963.   #
  964.   #  NOTE: If you don't want the newsp, filep ... shell scripts installed,
  965.   #        then you should comment out the following seven lines.
  966.          @echo Making mailp links
  967.          -@for name in $(MAILPNAMES); do \
  968.           echo -n $$name " "; \
  969. --- 112,121 ----
  970.          -install -c -m 644 mp.pro.timeman.ps $(LIBDIR)
  971.          -install -c -m 644 mp.pro.timesys.ps $(LIBDIR)
  972.          -install -c -m 755 mailp $(BINDIR)
  973.   #
  974.   #  NOTE: If you don't want the newsp, filep ... shell scripts installed,
  975.   #        then you should comment out the following seven lines.
  976. ! #
  977.          @echo Making mailp links
  978.          -@for name in $(MAILPNAMES); do \
  979.           echo -n $$name " "; \
  980.  
  981. ------- TODO -------
  982. *** /tmp/da06465    Mon Sep 17 09:41:15 1990
  983. --- TODO    Mon Sep 17 09:06:56 1990
  984. ***************
  985. *** 66,72 ****
  986.   
  987.      In the next release of mp, I will make the following changes:
  988.   
  989. !      mp.pro.filofax.ps ==> mp.pro.f.ps
  990.        mp.pro.timeman.ps ==> mp.pro.tm.ps
  991.        mp.pro.timesys.ps ==> mp.pro.ts.ps
  992.   
  993. --- 66,72 ----
  994.   
  995.      In the next release of mp, I will make the following changes:
  996.   
  997. !      mp.pro.filofax.ps ==> mp.pro.ff.ps
  998.        mp.pro.timeman.ps ==> mp.pro.tm.ps
  999.        mp.pro.timesys.ps ==> mp.pro.ts.ps
  1000.   
  1001. ***************
  1002. *** 79,81 ****
  1003. --- 79,91 ----
  1004.   
  1005.       Of course, you have to change the name of mp.1 to mp.man in the
  1006.       distribution and all occurrence of /usr/local/lib by LIBDIR.
  1007. + 11/ From Peter Collinson <pc@hillside.co.uk>
  1008. +     With regards to the -F (Mail from .....) option:
  1009. +     A more general solution might be to allow a specification on the command
  1010. +     line - I envisage something like
  1011. +         -f 'Mail from %from%'
  1012. +         -f 'Subject: %subject%'
  1013. +     of course `f' isn't available but you get the drift.
  1014.  
  1015.