]> diplodocus.org Git - nmh/blobdiff - man/mhshow.man
Check for text/html display programs in this order: w3m, lynx, elinks.
[nmh] / man / mhshow.man
index d25e6ebc5f3b7b2c9461c64af0c188179457b572..8505d7e19dcc77bda309fbce9e8f75e151c21254 100644 (file)
@@ -224,9 +224,9 @@ The display string may contain the following escapes:
 .PP
 .RS 5
 .nf
-.ta \w'%F      'u
+.ta \w'%F        'u
 %a        Insert parameters from Content-Type field
-%{charset} Insert the charset value from the Content-Type field
+%{parameter} Insert the parameter value from the Content-Type field
 %e        exclusive execution
 %f        Insert filename containing content
 %F        %e, %f, and stdin is terminal not content
@@ -258,19 +258,25 @@ control-\\) will tell
 .B mhshow
 to wrap things up immediately.
 .PP
-The {charset} escape is typically used in a command line argument that
-should only be present if it has a non-null value.  Shell parameter
-expansion can construct the argument only when it is non-null, e.g.,
+The {parameter} escape is typically used in a command line argument
+that should only be present if it has a non-null value.  Its value
+will be wrapped with single quotes if the escape is not so wrapped.
+Shell parameter expansion can construct the argument only when it is
+non-null, e.g.,
 .PP
 .RS 5
 .nf
-mhshow-show-text/html: charset="%{charset}";
+mhshow-show-text/html: charset=%{charset};
   w3m ${charset:+-I $charset} -T text/html %F
 .fi
 .RE
 .PP
 That example also shows the use of indentation to signify continuation:
-the two text lines combine to form a single entry.
+the two text lines combine to form a single entry.  Note that when
+dealing with text that has been converted internally by
+.IR iconv (3),
+the \*(lqcharset\*(rq parameter will reflect the target character set
+of the text, rather than the original character set in the message.
 .PP
 Note that if the content being displayed is multipart, but not one of
 the subtypes listed above, then the f- and F-escapes expand to multiple
@@ -319,8 +325,8 @@ mhshow-show-application/PostScript: lpr -Pps
 .fi
 .RE
 .PP
-If an f- or F-escape is not quoted with single quotes, double quotes,
-or backticks, its expansion will be wrapped with single quotes.
+If an f- or F-escape is not quoted with single quotes, its expansion
+will be wrapped with single quotes.
 .PP
 Finally,
 .B mhshow