Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / doc / MHonArc / faq / mime.html
CommitLineData
86530b38
AT
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN">
2<HTML>
3<HEAD>
4<TITLE>MHonArc FAQ: MIME</TITLE></HEAD>
5<BODY>
6
7<!--X-NavButtons-Start-->
8<p align=center>
9[<a href="threads.html">Prev</a>][<a href="security.html">Next</a>][<a href="faq.html">TOC</a>][<a href="http://www.mhonarc.org/">Home</a>]
10</p>
11<!--X-NavButtons-End-->
12
13<!-- ===================================================================== -->
14<HR>
15<H2><a name="mime">MIME</a></H2>
16
17<!--X-TOC-Start-->
18<ul>
19<li><a href="#whatismime">What is MIME?</a></li>
20<li><a href="#nonascii">Does MHonArc support message header extensions for non-ASCII text?</a></li>
21<li><a href="#howtorecog">How can I get MHonArc to recognize content-types it states it does not recognize?</a></li>
22<li><a href="#overridedefs">Can I override the default filters in MHonArc?</a></li>
23<li><a href="#overridemulti">Can I override the multipart/* processing of MHonArc?</a></li>
24<li><a href="#badtype">Why are attachments saved as a ".bin" files?</a></li>
25<li><a href="#filenames">Can attachments get saved with the filename specified in the message header?</a></li>
26<li><a href="#removepre">Can the &lt;PRE&gt; tags be removed from converted messages?</a></li>
27<li><a href="#lineclip">Can long lines be wrapped in converted messages?</a></li>
28<li><a href="#exclude">Can I exclude specific media-types?</a></li>
29<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>
30</ul>
31<!--X-TOC-End-->
32
33<!-- ??????????????????????????????????????????????????????????????? -->
34<hr noshade size=1>
35<table border=0>
36<tr valign=top><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
41Mail Extensions</EM>.
42An HTML version of the RFCs that define MIME are available at (<A
43HREF="http://www.nacs.uci.edu/indiv/ehood/MIME/MIME.html">http://www.nacs.uci.edu/indiv/ehood/MIME/MIME.html</A>).
44</P>
45
46<P>In sum, MIME "redefines the format of message bodies to
47allow multi-part textual and non-textual message bodies to
48be represented and exchanged without loss of information." [<A
49HREF="http://www.nacs.uci.edu/indiv/ehood/MIME/1521/rfc1521ToC.html">RFC
501521</A>] </P>
51
52<!-- ??????????????????????????????????????????????????????????????? -->
53<hr noshade size=1>
54<table border=0>
55<tr valign=top><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 CHARSETCONVERTERS resource page for
60which character sets are supported by MHonArc and how to extend
61MHonArc to support other character sets.
62</P>
63
64<!-- ??????????????????????????????????????????????????????????????? -->
65<hr noshade size=1>
66<table border=0>
67<tr valign=top><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 anwsered by reading about the MIMEFILTERS
72resource of the
73MHonArc documentation. The solution may require registering
74a pre-existing filter for the given content-type, or hooking in a
75new filter.
76</P>
77
78<!-- ??????????????????????????????????????????????????????????????? -->
79<hr noshade size=1>
80<table border=0>
81<tr valign=top><td><img src="monicon.png" align="bottom" alt=""></td><td>
82<h3><b><a name="overridedefs">Can I override the default filters in MHonArc?</a></b></h3>
83</td></tr></table>
84
85<p>Yes. MHonArc's default filters are hooked in
86as described in the MIMEFILTERS resource. Note, please review the
87options available for the default filters described in the MIMEFILTERS
88resource page since they may already provide the capability you
89need.
90</p>
91
92<!-- ??????????????????????????????????????????????????????????????? -->
93<hr noshade size=1>
94<table border=0>
95<tr valign=top><td><img src="monicon.png" align="bottom" alt=""></td><td>
96<h3><b><a name="overridemulti">Can I override the multipart/* processing of MHonArc?</a></b></h3>
97</td></tr></table>
98
99<p>Yes, but not recommended. Make sure you are familiar with how
100MHonArc does things before considering implementing your own multipart
101filter. In sum, you can completely replace MHonArc's filters
102with your own if you so desire.
103</p>
104
105<!-- ??????????????????????????????????????????????????????????????? -->
106<hr noshade size=1>
107<table border=0>
108<tr valign=top><td><img src="monicon.png" align="bottom" alt=""></td><td>
109<h3><b><a name="badtype">Why are attachments saved as a ".bin" files?</a></b></h3>
110</td></tr></table>
111
112<p>MHonArc uses the <b>Content-Type</b> field in messages to determine
113the type of data that is being processed. If data is gettings saved
114to a "<tt>.bin</tt>" file, it means the data has a content-type of
115<b>application/octet-stream</b>. The best solution to the problem
116is have the senders of the messages label the data properly. You
117can also check out the <b><tt>m2h_external::filter</tt></b> options documented
118in the MIMEFILTERS page of the documentation for some possible alternate
119solutions.
120</p>
121
122<!-- ??????????????????????????????????????????????????????????????? -->
123<hr noshade size=1>
124<table border=0>
125<tr valign=top><td><img src="monicon.png" align="bottom" alt=""></td><td>
126<h3><b><a name="filenames">Can attachments get saved with the filename specified in the message header?</a></b></h3>
127</td></tr></table>
128
129<p>Yes. See the <b><tt>m2h_external::filter</tt></b> options documented
130in the MIMEFILTERS page of the documentation. Make note of the
131security cautions in the documentation.
132Example:
133</p>
134<pre>
135&lt;MIMEArgs&gt;
136m2h_external::filter; usename
137&lt;/MIMEArgs&gt;
138</pre>
139
140<dl>
141<dt>See also:</dt>
142<dd><a href="security.html#attachments"
143 >Why doesn't MHonArc, by default, use the specified filename when
144 saving attachments?</a></dd>
145</dl>
146
147<!-- ??????????????????????????????????????????????????????????????? -->
148<hr noshade size=1>
149<table border=0>
150<tr valign=top><td><img src="monicon.png" align="bottom" alt=""></td><td>
151<h3><b><a name="removepre">Can the &lt;PRE&gt; tags be removed from converted messages?</a></b></h3>
152</td></tr></table>
153
154<p>Yes. See the options available for the <b>m2h_text_plain::filter</b>
155described in the MIMEFILTERS resource page of the documentation.
156Example:
157</p>
158<pre>
159&lt;MIMEArgs&gt;
160m2h_text_plain::filter; nonfixed
161&lt;/MIMEArgs&gt;
162</pre>
163
164<!-- ??????????????????????????????????????????????????????????????? -->
165<hr noshade size=1>
166<table border=0>
167<tr valign=top><td><img src="monicon.png" align="bottom" alt=""></td><td>
168<h3><b><a name="lineclip">Can long lines be wrapped in converted messages?</a></b></h3>
169</td></tr></table>
170
171<p>Yes. See the options available for the <b>m2h_text_plain::filter</b>
172described in the MIMEFILTERS resource page of the documentation.
173Example:
174</p>
175<pre>
176&lt;-- Make sure lines are no longer than 80 characters --&gt;
177&lt;MIMEArgs&gt;
178m2h_text_plain::filter; maxwidth=80
179&lt;/MIMEArgs&gt;
180</pre>
181
182<!-- ??????????????????????????????????????????????????????????????? -->
183<hr noshade size=1>
184<table border=0>
185<tr valign=top><td><img src="monicon.png" align="bottom" alt=""></td><td>
186<h3><b><a name="exclude">Can I exclude specific media-types?</a></b></h3>
187</td></tr></table>
188
189<p>Yes. See the MIMEEXCS resource.
190Example:
191</p>
192<pre>
193&lt;-- Exclude all HTML and binary data --&gt;
194&lt;MIMEExcs&gt;
195text/html
196application/octet-steam
197&lt;/MIMEExcs&gt;
198</pre>
199
200<!-- ??????????????????????????????????????????????????????????????? -->
201<hr noshade size=1>
202<table border=0>
203<tr valign=top><td><img src="monicon.png" align="bottom" alt=""></td><td>
204<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>
205</td></tr></table>
206
207<p>Yes, in v2.5.8, and later, via the MIMEALTPREFS resource.
208Example:
209</p>
210<pre>
211&lt;MIMEAltPrefs&gt;
212text/plain
213text/html
214&lt;/MIMEAltPrefs&gt;
215</pre>
216
217<!-- ===================================================================== -->
218<hr>
219
220<!--X-NavButtons-Start-->
221<p align=center>
222[<a href="threads.html">Prev</a>][<a href="security.html">Next</a>][<a href="faq.html">TOC</a>][<a href="http://www.mhonarc.org/">Home</a>]
223</p>
224<!--X-NavButtons-End-->
225
226<HR>
227<address>
228$Date: 2002/06/28 03:28:10 $ <br>
229<img align="top" src="monicon.png" alt="">
230<a href="http://www.mhonarc.org/"
231><strong>MHonArc</strong></a><br>
232Copyright &#169; 1997-1999, <a href="http://www.earlhood.com/"
233>Earl Hood</a>, <a href="mailto:mhonarc@mhonarc.org"
234>mhonarc@mhonarc.org</a><br>
235</address>
236</BODY>
237</HTML>