1 .TH MH\-MIME %manext7% "September 25, 2016" "%nmhversion%"
6 mh\-mime \- Overview of
8 MIME message composition and display
11 The acronym MIME stands for Multipurpose Internet Mail Extensions, the
12 format of Internet messages used to send multi\-media content.
15 command suite has support for the display and composition of MIME messages, but
16 currently MIME support is not completely integrated into all tools. This
17 document provides an overview as to which tools support MIME message display,
18 storage, and composition.
20 Local Character Set Conversion
23 commands convert non\-native character sets to the local character set,
24 as specified by the operating system locale settings. See
26 for more details on the environment variables used to set the
27 local character set. Character set conversion will only take place if
33 man page for how determine whether your
39 Depending on the source and target character set, it may not be possible
40 to convert all characters to the local character set. In this case a
41 substitution character will be used for the characters that cannot be
45 The default format used by
47 will automatically decode MIME-encoded headers. If you have a custom
49 format, see the examples provided with the
51 distribution (found in the
52 .RI \*(lq %nmhetcdir% \*(rq
55 for details on how to make sure your MIME headers are properly
60 detects that it is reading a MIME message it will invoke
62 The default behavior of
64 is to only display text parts that are not marked as attachments. See
66 for details on how to control what
70 Message Interrogation and Storage
73 command will display a listing of the MIME parts contained within a
74 message. That information can be used in conjunction with the
76 command to save individual parts or content types of a message. See
80 for more details on how these commands work.
82 Message Composition and Reply
85 will automatically be processed by
87 before being passed to
89 for message submission.
91 will use the locale settings to mark text content with the appropriate
92 character set and apply any necessary encoding. If you wish to include
93 text in your message using a character set that does not match your
94 locale, you will need to specify the character set using a
100 For attaching files or composing other non-text content, there are two options: the attach system and
104 The attach system is best suited for content where one or more files are
105 being attached to a message. You can use the attach system by either
108 command at the \*(lqWhat now?\*(rq prompt, or by inserting an \*(lqAttach:\*(rq
109 header in the message draft containing the name of the file you wish to
110 attach to the message (it should be noted all that the
112 command does is place an \*(lqAttach\*(rq header in the message draft).
114 will then automatically include the specified file(s) in the outgoing
119 determines the proper content type of attached files.
121 The other method of composing MIME messages is to use
123 directives. This allows exact control over the contents and format of
124 the MIME message, but has a more complicated syntax.
126 contains details on the directive syntax and examples of directives
127 for different media types. It is important to note that when using
129 directives the user must run
133 to have it process directives; when being run by
136 is configured to not process directives so normal user text is not mistaken
137 for a directive. When using directives a user typically uses the
139 command at the \*(lqWhat now?\*(rq prompt to process them.
141 When replying to messages using
143 the traditional MH method of including the original text in the reply does
144 not interoperate with MIME messages. The
148 provides one solution. Another solution: the contrib directory
149 .RI ( %docdir%/contrib )
150 contains a Perl program called
152 which will decode text parts and present them in an appropriate manner
153 to be included in a message reply. See the comments at the top of
155 for instructions on how to configure
162 command can apply various transformations to MIME messages, including
163 decoding of text parts, converting the character set of text parts,
164 and insertion of text/plain parts to correspond to text parts of other
167 can also repair defects in MIME messages, such as mismatched top-level
168 boundary indicators and invalid Content-Transfer-Encoding values.
180 .IR %docdir%/contrib/replyfilter ,
182 .I %docdir%/contrib/replaliases
184 MIME support should be more integrated into all of the
186 tools than it currently is.