X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3fb033ebd9f503b650912aa50ea78cb9b4b77bc2..283cbeb60a775eb5fe34e7e11950b0cddd86a6cb:/man/mhshow.man diff --git a/man/mhshow.man b/man/mhshow.man index 40304b09..8505d7e1 100644 --- a/man/mhshow.man +++ b/man/mhshow.man @@ -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