]> diplodocus.org Git - nmh/blobdiff - man/mhshow.man
Fixed fixup of sbr/dtimep.c with flex 2.5.36.
[nmh] / man / mhshow.man
index 40304b09d3e7b9c74cc025c2723c8706e6ce6f0a..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