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 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
|
.TH SHOW %manext1% 2016-03-24 "%nmhversion%"
.
.\" %nmhwarning%
.
.SH NAME
show \- display nmh messages
.SH SYNOPSIS
.HP 5
.na
.B show
.RB [ \-help ]
.RB [ \-version ]
.RI [ +folder ]
.RI [ msgs ]
.RB [ \-draft ]
.RB [ \-showproc
.IR program ]
.RB [ \-showmimeproc
.IR program ]
.RB [ \-header " | " \-noheader ]
.RB [ \-checkmime " | " \-nocheckmime ]
.RB [ \-concat " | " \-noconcat ]
[switches\ for
.I showproc
or
.IR showmimeproc ]
.ad
.SH DESCRIPTION
.B show
lists each of the specified messages to the standard output
(typically, the terminal).
.PP
By default, text (non-MIME) messages are filtered and displayed by
the
.B nmh
command
.BR mhl .
This command will display text
messages in a nice, uniform format. It also allows you to configure
the format of the displayed messages and which headers fields are
shown. See the
.IR mhl (1)
manual page for the details about this
command. This default can be changed by defining the
.I showproc
profile component. Any switches not recognized by
.BR show ,
as well as
.B \-header
and
.BR \-noheader ,
are
passed along to that program. To override the default and the
.I showproc
profile component, use the
.B \-showproc
.I program
switch. For example,
.B \-showproc
.I more
will cause the
.B more
program to list the messages with no reformatting. Normally, this
program is specified as the
.I showproc
in the user's
.IR \&.mh_profile ,
rather than using a command line switch.
.PP
By default, non-text messages (MIME messages with multi-media
contents) are processed and displayed by the
.B nmh
command
.BR mhshow .
See the
.IR mhshow (1)
manual page for details
about this command. This default can changed by defining the
.I showmimeproc
profile component. Any switches not recognized
by
.B show
are passed along to that program. To override this
default and the
.B showmimeproc
profile component, use the
.B \-showmimeproc
.I program
switch.
.PP
Note that in some cases,
.B show
may invoke the
.I showmimeproc
even for textual contents. This will happen for text messages that
specify a transfer encoding (such as MIME quoted-printable or
base64) or specify a character set that
.B show
doesn't believe
can be displayed natively. The appropriate
.IR locale (1)
environment variables
should be set to the terminal's native character set to avoid
gratuitous invocations of the
.IR showmimeproc .
See
.IR locale (1)
for details about these environment variables.
.PP
The option
.B \-checkmime
(set by default) instructs
.B show
to
test if any of the messages to be displayed are non-text (MIME)
messages. If any are non-text, they are displayed by the program
.IR showmimeproc ,
else they are displayed by the program
.IR showproc .
The option
.B \-nocheckmime
disables this test and instructs
.B show
to use
.IR showproc ,
regardless of whether
any of the messages are non-text (MIME) messages.
.P
The
.B \-noshowproc
switch will disable any formatting or paging of
messages. It is equivalent to
.B \-nocheckmime
.B \-showproc
.IR cat .
It is still accepted, but should be considered (somewhat) obsolete.
.PP
The
.B \-header
switch tells
.B show
to display a one-line
description of the message being shown. This description includes
the folder and the message number.
.PP
By default
.B show
will concatenate all content under one pager. If you want each part to
displayed separately, you can override the default behavior with
.B \-noconcat.
.PP
If no `msgs' are specified, the current message is used. Although
it depends on the specific
.I showproc
or
.IR showmimeproc ,
in the default setup when more than one message is specified, you
will be prompted for a <RETURN> prior to listing each message.
Each message will be listed a page at a time, and when the end of
page is reached, the program will wait for a <SPACE> or <RETURN>.
If a <RETURN> is entered, it will print the next line, whereas
<SPACE> will print the next screenful.
.PP
If the standard output is not a terminal, no queries are made, and
each file is listed with a one-line header and two lines of
separation.
.PP
.RB \*(lq "show \-draft" \*(rq
will list the file <mh-dir>/draft if it
exists.
.PP
If the profile entry \*(lqUnseen\-Sequence\*(rq is present and
non-empty, then
.B show
will remove each of the messages shown
from each sequence named by the profile entry.
.SH FILES
.fc ^ ~
.nf
.ta \w'%nmhetcdir%/ExtraBigFileName 'u
^$HOME/.mh_profile~^The user profile
.fi
.SH "PROFILE COMPONENTS"
.fc ^ ~
.nf
.ta 2.4i
.ta \w'ExtraBigProfileName 'u
^Path:~^To determine the user's nmh directory
^Current\-Folder:~^To find the default current folder
^Unseen\-Sequence:~^To name sequences denoting unseen messages
^showproc:~^Program to show text (non-MIME) messages
^showmimeproc:~^Program to show non-text (MIME) messages
.fi
.SH "SEE ALSO"
.IR mhl (1),
.IR mhshow (1),
.IR next (1),
.IR prev (1),
.IR scan (1)
.SH DEFAULTS
.nf
.RB ` +folder "' defaults to the current folder"
.RB ` msgs "' defaults to cur"
.RB ` \-checkmime '
.RB ` \-header '
.RB ` \-concat '
.fi
.SH CONTEXT
If a folder is given, it will become the current folder. The last
message selected will become the current message.
.SH BUGS
The
.B \-header
switch doesn't work when `msgs' expands to more than
one message. If the
.I showproc
is
.BR mhl ,
then this problem can
be circumvented by referencing the \*(lqmessagename\*(rq field in the
.B mhl
format file.
.PP
.B show
updates the user's context before showing the message.
Hence
.B show
will mark messages as seen prior to the user actually
seeing them. This is generally not a problem, unless the user relies
on the \*(lqunseen\*(rq messages mechanism, and interrupts
.B show
while it is showing \*(lqunseen\*(rq messages.
.PP
If your
.I showproc
is
.B mhl
(the default), then
.B show
uses
a built-in
.BR mhl :
it does not actually run the
.B mhl
program.
Hence, if you define your own
.BR showproc ,
don't call it
.B mhl
since
.B show
won't run it.
.PP
If your
.I showproc
is the pager
.BR more ,
then avoid running
.B show
in the background with only its standard output piped to
another process, as in
.PP
.RS 5
show | imprint &
.RE
.PP
Due to a bug in
.BR more ,
show will go into a \*(lqtty input\*(rq state.
To avoid this problem, re-direct
.BR show 's
diagnostic output as well.
For users of
.BR csh :
.PP
.RS 5
show |& imprint &
.RE
.PP
For users of
.BR sh :
.PP
.RS 5
show 2>&1 | imprint &
.RE
|