X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8b645f0ed11c256edd214edc24732a1567742c75..fc31cece:/man/mh-mime.man?ds=sidebyside diff --git a/man/mh-mime.man b/man/mh-mime.man index 3a568e52..ad75c8d8 100644 --- a/man/mh-mime.man +++ b/man/mh-mime.man @@ -1,4 +1,4 @@ -.TH MH\-MIME %manext7% " March 13, 2014" "%nmhversion%" +.TH MH\-MIME %manext7% "September 25, 2016" "%nmhversion%" .\" .\" %nmhwarning% .\" @@ -12,7 +12,7 @@ The acronym MIME stands for Multipurpose Internet Mail Extensions, the format of Internet messages used to send multi\-media content. The .B nmh -command suite has support for the display and composition of MIME messages, but +command suite has support for the display and composition of MIME messages, but currently MIME support is not completely integrated into all tools. This document provides an overview as to which tools support MIME message display, storage, and composition. @@ -21,65 +21,71 @@ Local Character Set Conversion All of the .B nmh commands convert non\-native character sets to the local character set, -as specified by the operating system locale settings. The +as specified by the operating system locale settings. See .IR locale (1) -man page has more details on the environment variables used to set the +for more details on the environment variables used to set the local character set. Character set conversion will only take place if .B nmh was built with -.IR icov (3) +.IR iconv (3) +support. See the +.IR mhparam (1) +man page for how determine whether your +.B nmh +installation includes +.IR iconv (3) support. .PP Depending on the source and target character set, it may not be possible -to convert all characters to the local character set. In this case a +to convert all characters to the local character set. In this case a substitution character will be used for the characters that cannot be converted. .SS Message Display The default format used by -.B scan +.IR scan (1) will automatically decode MIME-encoded headers. If you have a custom -scan format, see the examples provided with the +.B scan +format, see the examples provided with the .B nmh distribution (found in the -.RI \*(lq %etcdir% \*(rq -directory) and the +.RI \*(lq %nmhetcdir% \*(rq +directory) and .IR mh\-format (5) -man page for details on how to make sure your MIME headers are properly +for details on how to make sure your MIME headers are properly decoded. .PP By default, if .B show detects that it is reading a MIME message it will invoke -.BR mhshow . +.IR mhshow (1). The default behavior of .B mhshow -is to only display text parts that are not marked as attachments. See the +is to only display text parts that are not marked as attachments. See .IR mhshow (1) -man page for details on how to control what +for details on how to control what .B mhshow will display. .SS Message Interrogation and Storage The -.B mhlist +.IR mhlist (1) command will display a listing of the MIME parts contained within a -message. That information can be used in conjuction with the +message. That information can be used in conjunction with the .B mhstore command to save individual parts or content types of a message. See -the .IR mhlist (1) and .IR mhstore (1) -man pages for more details on how these commands work. +for more details on how these commands work. .SS Message Composition and Reply All messages sent by -.B send +.IR send (1) will automatically be processed by -.B mhbuild +.IR mhbuild (1) before being passed to -.B post +.IR post (1) for message submission. .B Mhbuild will use the locale settings to mark text content with the appropriate @@ -106,18 +112,18 @@ attach to the message (it should be noted all that the command does is place an \*(lqAttach\*(rq header in the message draft). .B Mhbuild will then automatically include the specified file(s) in the outgoing -message. See the +message. See .IR send (1) -man page for details on how +for details on how .B mhbuild determines the proper content type of attached files. .PP The other method of composing MIME messages is to use .B mhbuild directives. This allows exact control over the contents and format of -the MIME message, but has a more complicated syntax. The +the MIME message, but has a more complicated syntax. .IR mhbuild (1) -man page contains details on the directive syntax and examples of directives +contains details on the directive syntax and examples of directives for different media types. It is important to note that when using .B mhbuild directives the user must run @@ -133,10 +139,13 @@ for a directive. When using directives a user typically uses the command at the \*(lqWhat now?\*(rq prompt to process them. .PP When replying to messages using -.B repl +.IR repl (1) the traditional MH method of including the original text in the reply does -not interoperate with MIME messages. As of this writing there is no -native solution for addressing this issue, but the contrib directory +not interoperate with MIME messages. The +.B \-convertargs +switch to +.IR repl (1) +provides one solution. Another solution: the contrib directory .RI ( %docdir%/contrib ) contains a Perl program called .B replyfilter @@ -146,16 +155,32 @@ to be included in a message reply. See the comments at the top of for instructions on how to configure .B nmh to work with it. +.SS +Message Rewrite +The +.IR mhfixmsg (1) +command can apply various transformations to MIME messages, including +decoding of text parts, converting the character set of text parts, +and insertion of text/plain parts to correspond to text parts of other +subtypes. +.B mhfixmsg +can also repair defects in MIME messages, such as mismatched top-level +boundary indicators and invalid Content-Transfer-Encoding values. .SH "SEE ALSO" -.IR nmh (7), -.IR mhbuild (1), .IR comp (1), +.IR iconv (3), +.IR mh\-format (5) +.IR mhbuild (1), +.IR mhfixmsg (1), +.IR mhparam (1), +.IR nmh (7), .IR repl (1), .IR whatnow (1), -.IR mh\-format (5) -.PP -.I %docdir%/contrib/replyfilter +.br +.IR %docdir%/contrib/replyfilter , +.br +.I %docdir%/contrib/replaliases .SH BUGS -MIME support should be more integrated into all of the +MIME support should be more integrated into all of the .B nmh tools than it currently is.