1 .TH MH\-MIME %manext7% 2014-12-15 "%nmhversion%"
6 mh\-mime \- overview of nmh MIME message composition and display
9 The acronym MIME stands for Multipurpose Internet Mail Extensions, the
10 format of Internet messages used to send multi-media content.
13 command suite has support for the display and composition of MIME messages, but
14 currently MIME support is not completely integrated into all tools. This
15 document provides an overview as to which tools support MIME message display,
16 storage, and composition.
18 Local Character Set Conversion
21 commands convert non-native character sets to the local character set,
22 as specified by the operating system locale settings. See
24 for more details on the environment variables used to set the
25 local character set. Character set conversion will only take place if
31 for how to determine whether your
37 Depending on the source and target character set, it may not be possible
38 to convert all characters to the local character set. In this case a
39 substitution character will be used for the characters that cannot be
43 The default format used by
45 will automatically decode MIME-encoded headers. If you have a custom
47 format, see the examples provided with the
49 distribution (found in the
50 .RI \*(lq %nmhetcdir% \*(rq
53 for details on how to make sure your MIME headers are properly decoded.
57 detects that it is reading a MIME message it will invoke
59 The default behavior of
61 is to only display text parts that are not marked as attachments. See
63 for details on how to control what
67 Message Interrogation and Storage
70 command will display a listing of the MIME parts contained within a
71 message. That information can be used in conjunction with the
73 command to save individual parts or content types of a message. See
77 for more details on how these commands work.
79 Message Composition and Reply
82 will automatically be processed by
84 before being passed to
86 for message submission.
88 will use the locale settings to mark text content with the appropriate
89 character set and apply any necessary encoding. If you wish to include
90 text in your message using a character set that does not match your
91 locale, you will need to specify the character set using an
97 For attaching files or composing other non-text content, there are two options:
102 The attach system is best suited for content where one or more files are
103 being attached to a message. You can use the attach system by either
106 command at the \*(lqWhat now?\*(rq prompt, or by inserting an \*(lqAttach:\*(rq
107 header in the message draft containing the name of the file you wish to
108 attach to the message (note that all the
110 command does is place an \*(lqAttach:\*(rq header in the message draft).
112 will then automatically include the specified file(s) in the outgoing
117 determines the proper content type of attached files.
119 The other method of composing MIME messages is to use
121 directives. This allows exact control over the contents and format of
122 the MIME message, but has a more complicated syntax.
124 contains details on the directive syntax and examples of directives
125 for different media types. It is important to note that when using
127 directives the user must run
131 to have it process directives; when being run by
134 is configured to not process directives so normal user text is not mistaken
135 for a directive. When using directives a user typically uses the
137 command at the \*(lqWhat now?\*(rq prompt to process them.
139 When replying to messages using
141 the traditional MH method of including the original text in the reply does
142 not interoperate with MIME messages. The
146 provides one solution. Another solution: the contrib directory
147 .RI ( %docdir%/contrib )
148 contains a Perl program called
150 which will decode text parts and present them in an appropriate manner
151 to be included in a message reply. See the comments at the top of
153 for instructions on how to configure
160 command can apply various transformations to MIME messages, including
161 decoding of text parts, converting the character set of text parts,
162 and insertion of text/plain parts to correspond to text parts of other
165 can also repair defects in MIME messages, such as mismatched top-level
166 boundary indicators and invalid Content-Transfer-Encoding values.
178 .IR %docdir%/contrib/replyfilter ,
180 .I %docdir%/contrib/replaliases
182 MIME support should be more integrated into all of the
184 tools than it currently is.