Debian Codegraph @

doc/faq/mime.html

raw
1 <HTML>
2 <HEAD>
3 <TITLE>MHonArc FAQ: MIME</TITLE></HEAD>
4 <link rel="stylesheet" type="text/css" href="../docstyles.css">
5 <BODY>
6
7 <!--X-NavButtons-Start-->
8 <table width="100%"><tr><td align="left"><nobr>[<a href="threads.html">Prev</a>]</nobr></td><td align="center" width="100%">[<a href="faq.html">TOC</a>][<a href="../mhonarc.html">Manual</a>][<a href="http://www.mhonarc.org/">Home</a>]</td><td align="right"><nobr>[<a href="security.html">Next</a>]</nobr></td></tr></table>
9 </p>
10 <!--X-NavButtons-End-->
11
12 <!-- ===================================================================== -->
13 <HR>
14 <H2><a name="mime">MIME</a></H2>
15
16 <!--X-TOC-Start-->
17 <ul>
18 <li><a href="#whatismime">What is MIME?</a></li>
19 <li><a href="#nonascii">Does MHonArc support message header extensions for non-ASCII text?</a></li>
20 <li><a href="#howtorecog">How can I get MHonArc to recognize content-types it states it does not recognize?</a></li>
21 <li><a href="#overridedefs">Can I override the default filters in MHonArc?</a></li>
22 <li><a href="#overridemulti">Can I override the multipart/* processing of MHonArc?</a></li>
23 <li><a href="#badtype">Why are attachments saved as a ".bin" files?</a></li>
24 <li><a href="#filenames">Can attachments get saved with the filename specified in the message header?</a></li>
25 <li><a href="#removepre">Can the &lt;PRE&gt; tags be removed from converted messages?</a></li>
26 <li><a href="#lineclip">Can long lines be wrapped in converted messages?</a></li>
27 <li><a href="#exclude">Can I exclude specific media-types?</a></li>
28 <li><a href="#alternative">Can I tell MHonArc to use the text/plain part over a text/html part in a multipart/alternative message?</a></li>
29 <li><a href="#excattach">How do I exclude attachments from my archives?</a></li>
30 </ul>
31 <!--X-TOC-End-->
32
33 <!-- ??????????????????????????????????????????????????????????????? -->
34 <hr noshade size=1>
35 <table border=0>
36 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
37 <h3><b><a name="whatismime">What is MIME?</a></b></h3>
38 </td></tr></table>
39
40 <P>MIME stands for <EM>Multipurpose Internet
41 Mail Extensions</EM>.
42 An HTML version of the RFCs that define MIME are available at (<A
43 HREF="http://www.mhonarc.org/~ehood/MIME/">http://www.mhonarc.org/~ehood/MIME/</A>).
44 </P>
45
46 <P>In sum, MIME "redefines the format of message bodies to
47 allow multi-part textual and non-textual message bodies to
48 be represented and exchanged without loss of information." [<A
49 HREF="http://www.mhonarc.org/~ehood/MIME/1521/rfc1521ToC.html">RFC 1521</A>]
50 </P>
51
52 <!-- ??????????????????????????????????????????????????????????????? -->
53 <hr noshade size=1>
54 <table border=0>
55 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
56 <h3><b><a name="nonascii">Does MHonArc support message header extensions for non-ASCII text?</a></b></h3>
57 </td></tr></table>
58
59 <P>v2.0 or later. Review the <a href="../resources/charsetconverters.html">CHARSETCONVERTERS</a> resource page for
60 which character sets are supported by MHonArc and how to extend
61 MHonArc to support other character sets.
62 </P>
63
64 <!-- ??????????????????????????????????????????????????????????????? -->
65 <hr noshade size=1>
66 <table border=0>
67 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
68 <h3><b><a name="howtorecog">How can I get MHonArc to recognize content-types it states it does not recognize?</a></b></h3>
69 </td></tr></table>
70
71 <P>This question can be answered by reading about the <a href="../resources/mimefilters.html">MIMEFILTERS</a>
72 resource of the
73 MHonArc documentation. The solution may require registering
74 a pre-existing filter for the given content-type, or hooking in a
75 new filter.
76 </P>
77 <table class="note" width="100%">
78 <tr valign="baseline">
79 <td><strong>NOTE:</strong></td>
80 <td width="100%"><p>MHonArc treats unknown content-types as
81 <tt>application/octet-stream</tt> for purposes of filtering.
82 </p>
83 </td>
84 </tr>
85 </table>
86 <p>
87 </p>
88
89 <!-- ??????????????????????????????????????????????????????????????? -->
90 <hr noshade size=1>
91 <table border=0>
92 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
93 <h3><b><a name="overridedefs">Can I override the default filters in MHonArc?</a></b></h3>
94 </td></tr></table>
95
96 <p>Yes. MHonArc's default filters are hooked in
97 as described in the <a href="../resources/mimefilters.html">MIMEFILTERS</a> resource. Note, please review the
98 options available for the default filters described in the <a href="../resources/mimefilters.html">MIMEFILTERS</a>
99 resource page since they may already provide the capabilities you
100 need.
101 </p>
102
103 <!-- ??????????????????????????????????????????????????????????????? -->
104 <hr noshade size=1>
105 <table border=0>
106 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
107 <h3><b><a name="overridemulti">Can I override the multipart/* processing of MHonArc?</a></b></h3>
108 </td></tr></table>
109
110 <p>Yes, but not recommended. Make sure you are familiar with how
111 MHonArc does things before considering implementing your own multipart
112 filter. In sum, you can completely replace MHonArc's filters
113 with your own if you so desire.
114 </p>
115
116 <!-- ??????????????????????????????????????????????????????????????? -->
117 <hr noshade size=1>
118 <table border=0>
119 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
120 <h3><b><a name="badtype">Why are attachments saved as a ".bin" files?</a></b></h3>
121 </td></tr></table>
122
123 <p>MHonArc uses the <b>Content-Type</b> field in messages to determine
124 the type of data that is being processed. If data is gettings saved
125 to a "<tt>.bin</tt>" file, it means the data has a content-type of
126 <b>application/octet-stream</b>. The best solution to the problem
127 is have the senders of the messages label the data properly. You
128 can also check out the <b><tt>m2h_external::filter</tt></b> options documented
129 in the <a href="../resources/mimefilters.html">MIMEFILTERS</a> page of the documentation for some alternate
130 solutions.
131 </p>
132
133 <!-- ??????????????????????????????????????????????????????????????? -->
134 <hr noshade size=1>
135 <table border=0>
136 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
137 <h3><b><a name="filenames">Can attachments get saved with the filename specified in the message header?</a></b></h3>
138 </td></tr></table>
139
140 <p>Yes. See the <b><tt>m2h_external::filter</tt></b> options documented
141 in the <a href="../resources/mimefilters.html">MIMEFILTERS</a> page of
142 the documentation. <strong>Make note of the
143 security cautions</strong> in the documentation.
144 Example:
145 </p>
146 <pre class="code">
147 <b>&lt;MIMEArgs&gt;</b>
148 m2h_external::filter; usename
149 <b>&lt;/MIMEArgs&gt;</b>
150 </pre>
151
152 <dl>
153 <dt>See also:</dt>
154 <dd><a href="security.html#attachments"
155 >Why doesn't MHonArc, by default, use the specified filename when
156 saving attachments?</a></dd>
157 </dl>
158
159 <!-- ??????????????????????????????????????????????????????????????? -->
160 <hr noshade size=1>
161 <table border=0>
162 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
163 <h3><b><a name="removepre">Can the &lt;PRE&gt; tags be removed from converted messages?</a></b></h3>
164 </td></tr></table>
165
166 <p>Yes. See the options available for the <b>m2h_text_plain::filter</b>
167 described in the <a href="../resources/mimefilters.html">MIMEFILTERS</a> resource page of the documentation.
168 Example:
169 </p>
170 <pre class="code">
171 <b>&lt;MIMEArgs&gt;</b>
172 m2h_text_plain::filter; nonfixed
173 <b>&lt;/MIMEArgs&gt;</b>
174 </pre>
175
176 <!-- ??????????????????????????????????????????????????????????????? -->
177 <hr noshade size=1>
178 <table border=0>
179 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
180 <h3><b><a name="lineclip">Can long lines be wrapped in converted messages?</a></b></h3>
181 </td></tr></table>
182
183 <p>Yes. See the options available for the <b>m2h_text_plain::filter</b>
184 described in the <a href="../resources/mimefilters.html">MIMEFILTERS</a> resource page of the documentation.
185 Example:
186 </p>
187 <pre class="code">
188 &lt;-- Make sure lines are no longer than 80 characters --&gt;
189 <b>&lt;MIMEArgs&gt;</b>
190 m2h_text_plain::filter; maxwidth=80
191 <b>&lt;/MIMEArgs&gt;</b>
192 </pre>
193
194 <!-- ??????????????????????????????????????????????????????????????? -->
195 <hr noshade size=1>
196 <table border=0>
197 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
198 <h3><b><a name="exclude">Can I exclude specific media-types?</a></b></h3>
199 </td></tr></table>
200
201 <p>Yes. See the <a href="../resources/mimeexcs.html">MIMEEXCS</a> resource.
202 Example:
203 </p>
204 <pre class="code">
205 &lt;-- Exclude all HTML and binary data --&gt;
206 <b>&lt;MIMEExcs&gt;</b>
207 text/html
208 application/octet-steam
209 <b>&lt;/MIMEExcs&gt;</b>
210 </pre>
211
212 <!-- ??????????????????????????????????????????????????????????????? -->
213 <hr noshade size=1>
214 <table border=0>
215 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
216 <h3><b><a name="alternative">Can I tell MHonArc to use the text/plain part over a text/html part in a multipart/alternative message?</a></b></h3>
217 </td></tr></table>
218
219 <p>Yes, in v2.5.8, and later, via the <a href="../resources/mimealtprefs.html">MIMEALTPREFS</a> resource.
220 Example:
221 </p>
222 <pre class="code">
223 <b>&lt;MIMEAltPrefs&gt;</b>
224 text/plain
225 text/html
226 <b>&lt;/MIMEAltPrefs&gt;</b>
227 </pre>
228
229 <!-- ??????????????????????????????????????????????????????????????? -->
230 <hr noshade size=1>
231 <table border=0>
232 <tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
233 <h3><b><a name="excattach">How do I exclude attachments from my archives?</a></b></h3>
234 </td></tr></table>
235
236 <p>See the following archived message to the
237 <a href="http://www.mhonarc.org/archive/html/mhonarc-users/">mhonarc-users</a>
238 list:
239 <em><a href="http://www.mhonarc.org/archive/cgi-bin/mesg.cgi?a=mhonarc-users&i=200506022248.j52MmI023208%40gator.earlhood.com">Re: Disabling attachments</a></em>.
240 </p>
241 <table class="note" width="100%">
242 <tr valign="baseline">
243 <td><strong>NOTE:</strong></td>
244 <td width="100%"><p>The
245 <a href="../resources/mimeincs.html">MIMEINCS</a>
246 resource mentioned in the list message is available in MHonArc v2.6.12
247 and later.
248 </p>
249 </td>
250 </tr>
251 </table>
252 <p>
253 </p>
254
255 <!-- ===================================================================== -->
256 <hr>
257
258 <!--X-NavButtons-Start-->
259 <table width="100%"><tr><td align="left"><nobr>[<a href="threads.html">Prev</a>]</nobr></td><td align="center" width="100%">[<a href="faq.html">TOC</a>][<a href="../mhonarc.html">Manual</a>][<a href="http://www.mhonarc.org/">Home</a>]</td><td align="right"><nobr>[<a href="security.html">Next</a>]</nobr></td></tr></table>
260 </p>
261 <!--X-NavButtons-End-->
262
263 <HR>
264 <address>
265 $Date: 2005/06/07 19:17:26 $ <br>
266 <img align="top" src="monicon.png" alt="">
267 <a href="http://www.mhonarc.org/"
268 ><strong>MHonArc</strong></a><br>
269 Copyright &#169; 1997-1999, <a href="http://www.earlhood.com/"
270 >Earl Hood</a>, <a href="mailto:mhonarc&#37;40mhonarc.org"
271 >mhonarc<!--
272 -->&#64;<!--
273 -->mhonarc.org</a><br>
274 </address>
275 </BODY>
276 </HTML>