source: trunk/third/nmh/man/show.man @ 13185

Revision 13185, 6.3 KB checked in by danw, 25 years ago (diff)
document showproc and -nocheckmime changes
Line 
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
10show \- show (display) messages
11.SH SYNOPSIS
12.in +.5i
13.ti -.5i
14show
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
33By default on Athena, text (non-MIME) messages are piped to
34\fImore\fR(1). In the default nmh configuration, text messages are
35filtered and displayed by
36the \fInmh\fR command \fImhl\fR.  This command will display text
37messages in a nice, uniform format.  It also allows you to configure
38the format of the displayed messages and which headers fields are
39shown.  See the \fImhl\fR(1) manual page for the details about this
40command.  This default can be changed by defining the \fIshowproc\fR
41profile component.  Any switches not recognized by \fIshow\fR are
42passed along to that program.  To override the default and the
43\fIshowproc\fR profile component, use the `\-showproc\ program'
44switch.  For example, `\-showproc\ mhl will cause the \fImhl\fR
45program to list the messages nicely formatted.  Normally, this
46program is specified as the \fIshowproc\fR in the user's
47\&.mh\(ruprofile, rather than using a command line switch.
48
49By default, non-text messages (MIME messages with multi-media
50contents) are processed and displayed by the \fInmh\fR command
51\fImhshow\fR.  See the \fImhshow\fR(1) manual page for details
52about this command.  This default can changed by defining the
53\fIshowmimeproc\fR profile component.  Any switches not recognized
54by \fIshow\fR are passed along to that program.  To override this
55default and the \fIshowmimeproc\fR profile component, use the
56`\-showmimeproc\ program' switch.
57
58Note that in some cases, \fIshow\fR may invoke the \fIshowmimeproc\fR
59even for textual contents.  This will happen for text messages that
60specify a transfer encoding (such as MIME quoted-printable or
61base64) or specify a character set that \fIshow\fR doesn't believe
62can be displayed natively.  The environment variable MM_CHARSET
63should be set to the terminal's native character set to avoid
64gratuitous invocations of the \fIshowmimeproc\fR.  See the
65mh-profile(5) man page for details about this environment variable.
66
67The option `\-checkmime' (set by default) instructs \fIshow\fR to
68test if any of the messages to be displayed are non-text (MIME)
69messages.  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
72instructs \fIshow\fR to use \fIshowproc\fR, regardless of whether
73any of the messages are non-text (MIME) messages. `\-nocheckmime' is
74the default when showing multiple messages in a single invocation, to
75prevent formatting problems.
76
77The `\-noshowproc' switch will disable any formatting or paging of
78messages.  It is equivalent to `-nocheckmime\ -showproc\ cat'.  It
79is still accepted, but should be considered (somewhat) obsolete.
80
81If the environment variable \fBNOMHNPROC\fR is set, the test for
82non-text (MIME) messages will be disabled.  This method is obsolete.
83Use the `-nocheckmime' switch instead.
84
85The `\-header' switch tells \fIshow\fR to display a one\-line
86description of the message being shown.  This description includes
87the folder and the message number.
88
89If no `msgs' are specified, the current message is used.  Although
90it depends on the specific \fIshowproc\fR or \fIshowmimeproc\fR,
91in the default setup when more than one message is specified, you
92will be prompted for a <RETURN> prior to listing each message.
93Each message will be listed a page at a time, and when the end of
94page is reached, the program will wait for a <SPACE> or <RETURN>.
95If a <RETURN> is entered, it will print the next line, whereas
96<SPACE> will print the next screenful.
97
98If the standard output is not a terminal, no queries are made, and
99each file is listed with a one\-line header and two lines of
100separation.
101
102\*(lqshow \-draft\*(rq will list the file <mh\-dir>/draft if it
103exists.
104
105If the profile entry \*(lqUnseen\-Sequence\*(rq is present and
106non\-empty, then \fIshow\fR will remove each of the messages shown
107from 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
121mhl(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
131If a folder is given, it will become the current folder.  The last
132message shown will become the current message.
133.Bu
134The `\-header' switch doesn't work when `msgs' expands to more than
135one message.  If the \fIshowproc\fR is \fImhl\fR, then is problem can
136be 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.
140Hence \fIshow\fR will mark messages as seen prior to the user actually
141seeing them.  This is generally not a problem, unless the user relies
142on the \*(lqunseen\*(rq messages mechanism, and interrupts \fIshow\fR
143while it is showing \*(lqunseen\*(rq messages.
144
145If your \fIshowproc\fR is \fImhl\fR (the default), then \fIshow\fR uses
146a built\-in \fImhl\fR: it does not actually run the \fImhl\fR program.
147Hence, if you define your own \fIshowproc\fR, don't call it \fImhl\fR
148since \fIshow\fR won't run it.
149
150If your \fIshowproc\fR is the pager \fImore\fR, then avoid running
151\fIshow\fR in the background with only its standard output piped to
152another process, as in
153
154.ti +.5i
155show | imprint &
156
157Due to a bug in \fImore\fR, show will go into a \*(lqtty input\*(rq state.
158To avoid this problem, re\-direct \fIshow\fR's diagnostic output as well.
159For users of \fIcsh\fR:
160
161.ti +.5i
162show |& imprint &
163
164For users of \fIsh\fR:
165
166.ti +.5i
167show 2>&1 | imprint &
168.En
Note: See TracBrowser for help on using the repository browser.