1 | .\" |
---|
2 | .\" %nmhwarning% |
---|
3 | .\" $Id: show.man,v 1.2 1999-06-07 15:57:24 danw Exp $ |
---|
4 | .\" |
---|
5 | .\" include the -mh macro file |
---|
6 | .so %etcdir%/tmac.h |
---|
7 | .\" |
---|
8 | .TH SHOW %manext1% MH.6.8 [%nmhversion%] |
---|
9 | .SH NAME |
---|
10 | show \- show (display) messages |
---|
11 | .SH SYNOPSIS |
---|
12 | .in +.5i |
---|
13 | .ti -.5i |
---|
14 | show |
---|
15 | \%[+folder] \%[msgs] |
---|
16 | \%[\-showproc\ program] |
---|
17 | .br |
---|
18 | \%[\-showmimeproc\ program] |
---|
19 | \%[\-header] \%[\-noheader] |
---|
20 | .br |
---|
21 | \%[\-draft] |
---|
22 | \%[\-checkmime] \%[\-nocheckmime] |
---|
23 | .br |
---|
24 | \%[switches\ for\ \fIshowproc\fR or \fIshowmimeproc\fR] |
---|
25 | .br |
---|
26 | \%[\-version] |
---|
27 | \%[\-help] |
---|
28 | .in -.5i |
---|
29 | .SH DESCRIPTION |
---|
30 | \fIShow\fR lists each of the specified messages to the standard output |
---|
31 | (typically, the terminal). |
---|
32 | |
---|
33 | By default on Athena, text (non-MIME) messages are piped to |
---|
34 | \fImore\fR(1). In the default nmh configuration, text messages are |
---|
35 | filtered and displayed by |
---|
36 | the \fInmh\fR command \fImhl\fR. This command will display text |
---|
37 | messages in a nice, uniform format. It also allows you to configure |
---|
38 | the format of the displayed messages and which headers fields are |
---|
39 | shown. See the \fImhl\fR(1) manual page for the details about this |
---|
40 | command. This default can be changed by defining the \fIshowproc\fR |
---|
41 | profile component. Any switches not recognized by \fIshow\fR are |
---|
42 | passed along to that program. To override the default and the |
---|
43 | \fIshowproc\fR profile component, use the `\-showproc\ program' |
---|
44 | switch. For example, `\-showproc\ mhl will cause the \fImhl\fR |
---|
45 | program to list the messages nicely formatted. Normally, this |
---|
46 | program is specified as the \fIshowproc\fR in the user's |
---|
47 | \&.mh\(ruprofile, rather than using a command line switch. |
---|
48 | |
---|
49 | By default, non-text messages (MIME messages with multi-media |
---|
50 | contents) are processed and displayed by the \fInmh\fR command |
---|
51 | \fImhshow\fR. See the \fImhshow\fR(1) manual page for details |
---|
52 | about this command. This default can changed by defining the |
---|
53 | \fIshowmimeproc\fR profile component. Any switches not recognized |
---|
54 | by \fIshow\fR are passed along to that program. To override this |
---|
55 | default and the \fIshowmimeproc\fR profile component, use the |
---|
56 | `\-showmimeproc\ program' switch. |
---|
57 | |
---|
58 | Note that in some cases, \fIshow\fR may invoke the \fIshowmimeproc\fR |
---|
59 | even for textual contents. This will happen for text messages that |
---|
60 | specify a transfer encoding (such as MIME quoted-printable or |
---|
61 | base64) or specify a character set that \fIshow\fR doesn't believe |
---|
62 | can be displayed natively. The environment variable MM_CHARSET |
---|
63 | should be set to the terminal's native character set to avoid |
---|
64 | gratuitous invocations of the \fIshowmimeproc\fR. See the |
---|
65 | mh-profile(5) man page for details about this environment variable. |
---|
66 | |
---|
67 | The option `\-checkmime' (set by default) instructs \fIshow\fR to |
---|
68 | test if any of the messages to be displayed are non-text (MIME) |
---|
69 | messages. If any are non-text, they are displayed by the program |
---|
70 | \fIshowmimeproc\fR, else they are displayed by the program |
---|
71 | \fIshowproc\fR. The option `-nocheckmime' disables this test and |
---|
72 | instructs \fIshow\fR to use \fIshowproc\fR, regardless of whether |
---|
73 | any of the messages are non-text (MIME) messages. `\-nocheckmime' is |
---|
74 | the default when showing multiple messages in a single invocation, to |
---|
75 | prevent formatting problems. |
---|
76 | |
---|
77 | The `\-noshowproc' switch will disable any formatting or paging of |
---|
78 | messages. It is equivalent to `-nocheckmime\ -showproc\ cat'. It |
---|
79 | is still accepted, but should be considered (somewhat) obsolete. |
---|
80 | |
---|
81 | If the environment variable \fBNOMHNPROC\fR is set, the test for |
---|
82 | non-text (MIME) messages will be disabled. This method is obsolete. |
---|
83 | Use the `-nocheckmime' switch instead. |
---|
84 | |
---|
85 | The `\-header' switch tells \fIshow\fR to display a one\-line |
---|
86 | description of the message being shown. This description includes |
---|
87 | the folder and the message number. |
---|
88 | |
---|
89 | If no `msgs' are specified, the current message is used. Although |
---|
90 | it depends on the specific \fIshowproc\fR or \fIshowmimeproc\fR, |
---|
91 | in the default setup when more than one message is specified, you |
---|
92 | will be prompted for a <RETURN> prior to listing each message. |
---|
93 | Each message will be listed a page at a time, and when the end of |
---|
94 | page is reached, the program will wait for a <SPACE> or <RETURN>. |
---|
95 | If a <RETURN> is entered, it will print the next line, whereas |
---|
96 | <SPACE> will print the next screenful. |
---|
97 | |
---|
98 | If the standard output is not a terminal, no queries are made, and |
---|
99 | each file is listed with a one\-line header and two lines of |
---|
100 | separation. |
---|
101 | |
---|
102 | \*(lqshow \-draft\*(rq will list the file <mh\-dir>/draft if it |
---|
103 | exists. |
---|
104 | |
---|
105 | If the profile entry \*(lqUnseen\-Sequence\*(rq is present and |
---|
106 | non\-empty, then \fIshow\fR will remove each of the messages shown |
---|
107 | from each sequence named by the profile entry. |
---|
108 | .Fi |
---|
109 | ^$HOME/\&.mh\(ruprofile~^The user profile |
---|
110 | .Pr |
---|
111 | ^Path:~^To determine the user's nmh directory |
---|
112 | .Ps |
---|
113 | ^Current\-Folder:~^To find the default current folder |
---|
114 | .Ps |
---|
115 | ^Unseen\-Sequence:~^To name sequences denoting unseen messages |
---|
116 | .Ps |
---|
117 | ^showproc:~^Program to show text (non-MIME) messages |
---|
118 | .Ps |
---|
119 | ^showmimeproc:~^Program to show non-text (MIME) messages |
---|
120 | .Sa |
---|
121 | mhl(1), mhshow(1), more(1), next(1), prev(1), scan(1) |
---|
122 | .De |
---|
123 | `+folder' defaults to the current folder |
---|
124 | .Ds |
---|
125 | `msgs' defaults to cur |
---|
126 | .Ds |
---|
127 | `\-checkmime' |
---|
128 | .Ds |
---|
129 | `\-header' |
---|
130 | .Co |
---|
131 | If a folder is given, it will become the current folder. The last |
---|
132 | message shown will become the current message. |
---|
133 | .Bu |
---|
134 | The `\-header' switch doesn't work when `msgs' expands to more than |
---|
135 | one message. If the \fIshowproc\fR is \fImhl\fR, then is problem can |
---|
136 | be circumvented by referencing the \*(lqmessagename\*(rq field in the |
---|
137 | \fImhl\fR format file. |
---|
138 | |
---|
139 | \fIShow\fR updates the user's context before showing the message. |
---|
140 | Hence \fIshow\fR will mark messages as seen prior to the user actually |
---|
141 | seeing them. This is generally not a problem, unless the user relies |
---|
142 | on the \*(lqunseen\*(rq messages mechanism, and interrupts \fIshow\fR |
---|
143 | while it is showing \*(lqunseen\*(rq messages. |
---|
144 | |
---|
145 | If your \fIshowproc\fR is \fImhl\fR (the default), then \fIshow\fR uses |
---|
146 | a built\-in \fImhl\fR: it does not actually run the \fImhl\fR program. |
---|
147 | Hence, if you define your own \fIshowproc\fR, don't call it \fImhl\fR |
---|
148 | since \fIshow\fR won't run it. |
---|
149 | |
---|
150 | If your \fIshowproc\fR is the pager \fImore\fR, then avoid running |
---|
151 | \fIshow\fR in the background with only its standard output piped to |
---|
152 | another process, as in |
---|
153 | |
---|
154 | .ti +.5i |
---|
155 | show | imprint & |
---|
156 | |
---|
157 | Due to a bug in \fImore\fR, show will go into a \*(lqtty input\*(rq state. |
---|
158 | To avoid this problem, re\-direct \fIshow\fR's diagnostic output as well. |
---|
159 | For users of \fIcsh\fR: |
---|
160 | |
---|
161 | .ti +.5i |
---|
162 | show |& imprint & |
---|
163 | |
---|
164 | For users of \fIsh\fR: |
---|
165 | |
---|
166 | .ti +.5i |
---|
167 | show 2>&1 | imprint & |
---|
168 | .En |
---|