4 .TH SHOW %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
6 show \- display (MIME) messages
8 next \- show the next message
10 prev \- show the previous message
42 This (i.e. mmh's) version of
44 is a modified version of nmh's
49 program was removed from mmh.
54 command display contents of a MIME (multi-media)
55 message or collection of messages.
61 on the next or previous message in the specified
62 (or current) folder, respectively.
65 manipulates multi-media messages as specified in
66 RFC\-2045 thru RFC\-2049. Currently
69 encodings in message bodies, and does not support the encoding of
70 message headers as specified in RFC\-2047.
74 will display all parts of a multipart
82 to particular subparts (of a
83 multipart content) and/or particular content types.
90 to use the specified file as
91 the source message, rather than a message from a folder. If you specify
92 this file as `-', then
94 will accept the source message
95 on the standard input. Note that the file, or input from standard input
96 should be a validly formatted message, just like any other
100 be in mail drop format (to convert a file in
101 mail drop format to a folder of
106 When displaying multiple messages,
108 prepends each of them with a `>>> Message nnn' header,
109 and separates the messages with two lines of space.
110 This is similar to the way
112 acts on multiple files.
114 A part specification consists of a series of numbers separated by dots.
115 For example, in a multipart content containing three parts, these
116 would be named as 1, 2, and 3, respectively. If part 2 was also a
117 multipart content containing two parts, these would be named as 2.1 and
118 2.2, respectively. Note that the
120 switch is effective for only
121 messages containing a multipart content. If a message has some other
122 kind of content, or if the part is itself another multipart content, the
124 switch will not prevent the content from being acted upon.
126 A content specification consists of a content type and a subtype.
127 The initial list of `standard' content types and subtypes can
128 be found in RFC\-2046.
130 A list of commonly used contents is briefly reproduced here:
134 .ta \w'application 'u
138 multipart mixed, alternative, digest, parallel
139 message rfc822, partial, external-body
140 application octet-stream, postscript
147 A legal MIME message must contain a subtype specification.
149 To specify a content, regardless of its subtype, just use the
150 name of the content, e.g., `audio'. To specify a specific
151 subtype, separate the two with a slash, e.g., `audio/basic'.
152 Note that regardless of the values given to the `\-type' switch, a
153 multipart content (of any subtype listed above) is always acted upon.
154 .SS "Unseen Sequence"
155 If the profile entry `Unseen\-Sequence' is present and
158 will remove each of the messages shown
159 from each sequence named by the profile entry.
160 .SS "Showing the Contents"
162 prints messages in a convenient representation.
165 is outputting to a terminal, then
166 a pager will be placed between the terminal and
169 The headers of each message are displayed with
171 using the standard format file
173 You may specify an alternate format file with the
176 switch. If the format file
178 is specified, then the display
179 of the message headers is suppressed.
181 Next, the contents are extracted from the message and are stored in
182 a temporary file. Usually, the name of the temporary file is the
183 word `show' followed by a string of characters. Occasionally,
184 the method used to display a content (described next), requires that
185 the file end in a specific suffix. For example, the
187 command (part of the StarOffice package) can be used to display
188 Microsoft Word content, but it uses the suffix to determine how to display
189 the file. If no suffix is present, the file is not correctly loaded.
190 Similarly, older versions of the
192 command append a `.ps' suffix to
193 the filename if one was missing. As a result, these cannot be used to read
194 the default temporary file.
196 To get around this, your profile can contain lines of the forms:
200 mhshow-suffix-<type>/<subtype>: <suffix>
201 mhshow-suffix-<type>: <suffix>
205 to specify a suffix which can be automatically added to the temporary
206 file created for a specific content type. For example, the following
207 lines might appear in your profile:
211 mhshow-suffix-text: .txt
212 mhshow-suffix-application/msword: .doc
213 mhshow-suffix-application/PostScript: .ps
217 to automatically append a suffix to the temporary files.
219 The method used to display the different contents in the messages bodies
220 will be determined by a `display string'. To find the display
223 will first search your profile for an entry of the form:
226 mhshow-show-<type>/<subtype>
229 to determine the display string. If this isn't found,
231 will search for an entry of the form:
237 to determine the display string.
239 If a display string is found, any escapes (given below) will be expanded.
240 The result will be executed under
241 `/bin/sh', with the standard input
244 The display string may contain the following escapes:
249 %l Display listing prior to displaying content
250 %f Insert filename containing content
251 %F %f, but stdin is terminal not content
252 %a Insert parameters from Content-Type field
253 %s Insert content subtype
254 %c Insert foreign charset
255 %d Insert content description
261 processes the MIME parts serially, i.e. the next display process
262 is executed after the previous one has terminated.
266 is display a content, typing QUIT (usually
267 control-\\) will tell
269 to wrap things up immediately.
271 Note that if the content being displayed is multipart, but not one of
272 the subtypes listed above, then the f- and F-escapes expand to multiple
273 filenames, one for each subordinate content. Further, stdin is not
274 redirected from the terminal to the content.
276 If a display string is not found,
278 has the following default values:
282 mhshow-show-text/plain: %liconv \-f <source-charset>
283 mhshow-show-message/rfc822: %lshow \-file %F
287 If a subtype of type text doesn't have a profile entry, it will be
288 treated as text/plain.
291 has default methods for handling multipart messages of subtype
292 mixed, alternative, parallel, and digest. Any unknown subtype of type
293 multipart (without a profile entry), will be treated as multipart/mixed.
295 If none of these apply, then
299 Example entries might be:
303 mhshow-show-audio/basic: raw2audio 2>/dev/null | play
304 mhshow-show-image: xv %f
305 mhshow-show-application/PostScript: lpr \-Pps
309 When expanding %f and %F escapes, the file names get wrapped in
310 single-quotes automatically.
314 will process each message serially \- it won't start
315 showing the next message until all the commands executed to display the
316 current message have terminated. Although a multipart content may
317 contain advice to display the parts in parallel,
320 .SS "Showing Alternate Character Sets"
321 Because a content of type text might be in a non-ASCII character
324 encounters a `charset' parameter for
325 this content, it checks if your terminal can display this character
328 checks this by first examining the the environment
331 and if not set, taking the character encoding of the current locale.
333 If the character set of text/plain cannot be displayed natively, then
334 the default display method converts the content automatically by
338 iconv \-f '<source-charset>'
341 Note that if you have a custom `mhshow-show-*' display string, you
342 need to care yourself for converting the encodings.
343 (The foreign charset is available through the %c escape.)
347 needs to be available.
349 `mhshow-charset-*' profile entries are not supported anymore.
350 .SS "Messages of Type message/partial"
352 cannot directly display messages of type partial.
353 You must reassemble them first into a normal message using
355 Check the man page for
358 .SS "External Access"
360 does not automatically retrieve message/external-body parts (anymore),
361 but prints the relevant information to enable the user to retrieve
363 .SS "User Environment"
364 Because the display environment in which
366 operates may vary for
369 will look for the environment variable
371 If present, this specifies the name of an additional
372 user profile which should be read. Hence, when a user logs in on a
373 particular display device, this environment variable should be set to
374 refer to a file containing definitions useful for the given display device.
375 Normally, only entries that deal with the methods to display different
376 content type and subtypes
380 mhshow-show-<type>/<subtype>
385 need be present in this additional profile. Finally,
387 will attempt to consult one other additional user profile,
391 %etcdir%/mhn.defaults
394 which is created automatically during
401 .ta \w'%etcdir%/ExtraBigFileName 'u
402 ^$HOME/.mmh/profile~^The user profile
403 ^$MHSHOW~^Additional profile entries
404 ^%etcdir%/mhn.defaults~^System default MIME profile entries
405 ^%etcdir%/mhl.headers~^The headers template
408 .SH "PROFILE COMPONENTS"
412 .ta \w'ExtraBigProfileName 'u
413 ^Path:~^To determine the user's mail storage
414 ^Current\-Folder:~^To find the default current folder
415 ^Unseen\-Sequence:~^To name sequences denoting unseen messages
416 ^mhshow-show-<type>*~^Template for displaying contents
417 ^Pager:~^Program to use as interactive front\-end
421 mhbuild(1), mhl(1), mhlist(1), mhstore(1), sendfiles(1)
425 .RB ` +folder "' defaults to the current folder"
426 .RB ` msgs "' defaults to the current message"
427 .RB ` \-form \ mhl.headers'
432 If a folder is given, it will become the current folder. The last
433 message selected will become the current message.
439 are really links to the
441 program. As a result, if
446 and that link is not called
450 your link will act like
452 instead. To circumvent this, add a
453 profile\-entry for the link to your
455 profile and add the argument