1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
<html lang="en">
<head>
<title>Printing - The MH-E Manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="The MH-E Manual">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Reading-Mail.html#Reading-Mail" title="Reading Mail">
<link rel="prev" href="Reading-PGP.html#Reading-PGP" title="Reading PGP">
<link rel="next" href="Files-and-Pipes.html#Files-and-Pipes" title="Files and Pipes">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This is version 8.0.3 of `The MH-E
Manual', last updated 2006-11-12.
Copyright (C) 1995, 2001, 2002, 2003, 2005, 2006 Free
Software Foundation, Inc.
The MH-E manual is free documentation; you can redistribute it
and/or modify it under the terms of either:
a. the GNU Free Documentation License, Version 1.2 or any later
version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts.
b. the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option)
any later version.
The MH-E manual is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License or GNU Free Documentation License for more
details.
The GNU General Public License and the GNU Free Documentation
License appear as appendices to this document. You may also
request copies by writing to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="Printing"></a>
Next: <a rel="next" accesskey="n" href="Files-and-Pipes.html#Files-and-Pipes">Files and Pipes</a>,
Previous: <a rel="previous" accesskey="p" href="Reading-PGP.html#Reading-PGP">Reading PGP</a>,
Up: <a rel="up" accesskey="u" href="Reading-Mail.html#Reading-Mail">Reading Mail</a>
<hr>
</div>
<h3 class="section">6.6 Printing Your Mail</h3>
<p><a name="index-printing-663"></a><a name="index-mh_002dps_002dprint_002dmsg-664"></a><a name="index-mh_002dps_002dprint_002dmsg_002dfile-665"></a><a name="index-P-f-666"></a><a name="index-P-p-667"></a><a name="index-mh_002dlpr_002dcommand_002dformat-668"></a><a name="index-mh_002dprint_002dbackground_002dflag-669"></a>
To print messages in MH-E, use the command <kbd>P p</kbd>
(<code>mh-ps-print-msg</code>). You can print all the messages in a range
(as in <kbd>C-u P p 1 3 5-7 last:5 frombob <RET></kbd>,
see <a href="Ranges.html#Ranges">Ranges</a>). You can also send the output to a file with <kbd>P f</kbd>
(<code>mh-ps-print-msg-file</code>). This command will print inline text
attachments but will not decrypt messages. However, when a message is
displayed in an MH-Show buffer, then that buffer is used verbatim for
printing with the caveat that only text attachments, if opened inline,
are printed. Therefore, encrypted messages can be printed by showing
and decrypting them first. The commands <kbd>P p</kbd> and <kbd>P f</kbd> do not
use the options <code>mh-lpr-command-format</code> or
<code>mh-print-background-flag</code>, described below.
<p><a name="index-mh_002dps_002dprint_002dtoggle_002dcolor-670"></a><a name="index-P-C-671"></a><a name="index-ps_002dprint_002dcolor_002dp-672"></a>
Colors are emulated on black-and-white printers with shades of gray.
This might produce illegible output, even if your screen colors only
use shades of gray. If this is the case, try using the command <kbd>P
C</kbd> (<code>mh-ps-print-toggle-color</code>) to toggle between color, no
color, and a black and white representation of the colors and see
which works best. You change this setting permanently by customizing
the option <code>ps-print-color-p</code>.
<p><a name="index-mh_002dps_002dprint_002dtoggle_002dfaces-673"></a><a name="index-P-F-674"></a>
Another related function is the command <kbd>P F</kbd>
(<code>mh-ps-print-toggle-faces</code>). This command toggles between using
faces and not. When faces are enabled, the printed message will look
very similar to the message in the MH-Show buffer.
<p><a name="index-ps_002dprint-package-675"></a><a name="index-Emacs_002c-packages_002c-ps_002dprint-676"></a>
MH-E uses the `<samp><span class="samp">ps-print</span></samp>' package to do the printing, so you can
customize the printing further by going to the `<samp><span class="samp">ps-print</span></samp>'
customization group.
<p><a name="index-g_t_0040command_007blpr_007d-677"></a><a name="index-g_t_0040command_007bmhl_007d-678"></a><a name="index-MH-commands_002c-_0040command_007bmhl_007d-679"></a><a name="index-Unix-commands_002c-_0040command_007blpr_007d-680"></a><a name="index-mh_002dprint_002dmsg-681"></a><a name="index-P-l-682"></a>
An alternative to using the `<samp><span class="samp">ps-print</span></samp>' package is the command
<kbd>P l</kbd> (<code>mh-print-msg</code>) (the <i>l</i> is for <i>l</i>ine printer or
<i>l</i>pr). You can print all the messages in a range. The message is
formatted with <samp><span class="command">mhl</span></samp><a rel="footnote" href="#fn-1" name="fnd-1"><sup>1</sup></a> and printed with the <samp><span class="command">lpr</span></samp> command.
<p><a name="index-P-f-683"></a><a name="index-P-l-684"></a><a name="index-P-p-685"></a><a name="index-mh_002dlpr_002dcommand_002dformat-686"></a><a name="index-mh_002dprint_002dbackground_002dflag-687"></a>
The command <kbd>P l</kbd> uses two options. The option
<code>mh-lpr-command-format</code> contains the Unix command line which
performs the actual printing. The string can contain one escape,
`<samp><span class="samp">%s</span></samp>', which is replaced by the name of the folder and the message
number and is useful for print job names. The default setting is
<code>"lpr -J '%s'"</code>. I use <code>"mpage -h'%s' -b Letter -H1of -mlrtb
-P"</code> which produces a nice header and adds a bit of margin so the text
fits within my printer's margins. Normally messages are printed in the
foreground. If this is slow on your system, you may elect to turn on
the option <code>mh-print-background-flag</code> to print in the background.
If you do this, do not delete the message until it is printed or else
the output may be truncated. These options are not used by the
commands <kbd>P p</kbd> or <kbd>P f</kbd>.
<div class="footnote">
<hr>
<h4>Footnotes</h4><p class="footnote"><small>[<a name="fn-1" href="#fnd-1">1</a>]</small> See the section
<a href="http://rand-mh.sourceforge.net/book/mh/shomes.html#Usisho">Using mhl</a> in the MH
book.</p>
<p><hr></div>
</body></html>
|