1 <?xml version="1.0" encoding="ascii"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>mimetools.Message</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
18 <th> <a
19 href="lxml-module.html">Home</a> </th>
22 <th> <a
23 href="module-tree.html">Trees</a> </th>
26 <th> <a
27 href="identifier-index.html">Indices</a> </th>
30 <th> <a
31 href="help.html">Help</a> </th>
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 ><a class="navbar" target="_top" href="/">lxml API</a></th>
41 <table width="100%" cellpadding="0" cellspacing="0">
44 <span class="breadcrumbs">
51 <table cellpadding="0" cellspacing="0">
52 <!-- hide/show private -->
53 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
54 onclick="toggle_private();">hide private</a>]</span></td></tr>
55 <tr><td align="right"><span class="options"
56 >[<a href="frames.html" target="_top">frames</a
57 >] | <a href="mimetools.Message-class.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class Message</h1><p class="nomargin-top"></p>
65 <pre class="base-tree">
68 <strong class="uidshort">Message</strong>
72 A derived class of rfc822.Message that knows about MIME headers and
73 contains some hooks for decoding encoded and multipart messages.
75 <!-- ==================== INSTANCE METHODS ==================== -->
76 <a name="section-InstanceMethods"></a>
77 <table class="summary" border="1" cellpadding="3"
78 cellspacing="0" width="100%" bgcolor="white">
79 <tr bgcolor="#70b0f0" class="table-header">
80 <td colspan="2" class="table-header">
81 <table border="0" cellpadding="0" cellspacing="0" width="100%">
83 <td align="left"><span class="table-header">Instance Methods</span></td>
84 <td align="right" valign="top"
85 ><span class="options">[<a href="#section-InstanceMethods"
86 class="privatelink" onclick="toggle_private();"
87 >hide private</a>]</span></td>
93 <td width="15%" align="right" valign="top" class="summary">
94 <span class="summary-type"> </span>
95 </td><td class="summary">
96 <table width="100%" cellpadding="0" cellspacing="0" border="0">
98 <td><span class="summary-sig"><a href="mimetools.Message-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
99 <span class="summary-sig-arg">fp</span>,
100 <span class="summary-sig-arg">seekable</span>=<span class="summary-sig-default">1</span>)</span><br />
101 Initialize the class instance and read the headers.</td>
102 <td align="right" valign="top">
112 <td width="15%" align="right" valign="top" class="summary">
113 <span class="summary-type"> </span>
114 </td><td class="summary">
115 <table width="100%" cellpadding="0" cellspacing="0" border="0">
117 <td><span class="summary-sig"><a name="getencoding"></a><span class="summary-sig-name">getencoding</span>(<span class="summary-sig-arg">self</span>)</span></td>
118 <td align="right" valign="top">
128 <td width="15%" align="right" valign="top" class="summary">
129 <span class="summary-type"> </span>
130 </td><td class="summary">
131 <table width="100%" cellpadding="0" cellspacing="0" border="0">
133 <td><span class="summary-sig"><a name="getmaintype"></a><span class="summary-sig-name">getmaintype</span>(<span class="summary-sig-arg">self</span>)</span></td>
134 <td align="right" valign="top">
144 <td width="15%" align="right" valign="top" class="summary">
145 <span class="summary-type"> </span>
146 </td><td class="summary">
147 <table width="100%" cellpadding="0" cellspacing="0" border="0">
149 <td><span class="summary-sig"><a name="getparam"></a><span class="summary-sig-name">getparam</span>(<span class="summary-sig-arg">self</span>,
150 <span class="summary-sig-arg">name</span>)</span></td>
151 <td align="right" valign="top">
161 <td width="15%" align="right" valign="top" class="summary">
162 <span class="summary-type"> </span>
163 </td><td class="summary">
164 <table width="100%" cellpadding="0" cellspacing="0" border="0">
166 <td><span class="summary-sig"><a name="getparamnames"></a><span class="summary-sig-name">getparamnames</span>(<span class="summary-sig-arg">self</span>)</span></td>
167 <td align="right" valign="top">
177 <td width="15%" align="right" valign="top" class="summary">
178 <span class="summary-type"> </span>
179 </td><td class="summary">
180 <table width="100%" cellpadding="0" cellspacing="0" border="0">
182 <td><span class="summary-sig"><a name="getplist"></a><span class="summary-sig-name">getplist</span>(<span class="summary-sig-arg">self</span>)</span></td>
183 <td align="right" valign="top">
193 <td width="15%" align="right" valign="top" class="summary">
194 <span class="summary-type"> </span>
195 </td><td class="summary">
196 <table width="100%" cellpadding="0" cellspacing="0" border="0">
198 <td><span class="summary-sig"><a name="getsubtype"></a><span class="summary-sig-name">getsubtype</span>(<span class="summary-sig-arg">self</span>)</span></td>
199 <td align="right" valign="top">
209 <td width="15%" align="right" valign="top" class="summary">
210 <span class="summary-type"> </span>
211 </td><td class="summary">
212 <table width="100%" cellpadding="0" cellspacing="0" border="0">
214 <td><span class="summary-sig"><a name="gettype"></a><span class="summary-sig-name">gettype</span>(<span class="summary-sig-arg">self</span>)</span></td>
215 <td align="right" valign="top">
225 <td width="15%" align="right" valign="top" class="summary">
226 <span class="summary-type"> </span>
227 </td><td class="summary">
228 <table width="100%" cellpadding="0" cellspacing="0" border="0">
230 <td><span class="summary-sig"><a name="parseplist"></a><span class="summary-sig-name">parseplist</span>(<span class="summary-sig-arg">self</span>)</span></td>
231 <td align="right" valign="top">
241 <td width="15%" align="right" valign="top" class="summary">
242 <span class="summary-type"> </span>
243 </td><td class="summary">
244 <table width="100%" cellpadding="0" cellspacing="0" border="0">
246 <td><span class="summary-sig"><a name="parsetype"></a><span class="summary-sig-name">parsetype</span>(<span class="summary-sig-arg">self</span>)</span></td>
247 <td align="right" valign="top">
257 <td colspan="2" class="summary">
258 <p class="indent-wrapped-lines"><b>Inherited from <code>rfc822.Message</code></b>:
259 <code>__contains__</code>,
260 <code>__delitem__</code>,
261 <code>__getitem__</code>,
262 <code>__iter__</code>,
263 <code>__len__</code>,
264 <code>__setitem__</code>,
265 <code>__str__</code>,
267 <code>getaddr</code>,
268 <code>getaddrlist</code>,
269 <code>getallmatchingheaders</code>,
270 <code>getdate</code>,
271 <code>getdate_tz</code>,
272 <code>getfirstmatchingheader</code>,
273 <code>getheader</code>,
274 <code>getheaders</code>,
275 <code>getrawheader</code>,
276 <code>has_key</code>,
277 <code>iscomment</code>,
278 <code>isheader</code>,
282 <code>readheaders</code>,
283 <code>rewindbody</code>,
284 <code>setdefault</code>,
290 <!-- ==================== METHOD DETAILS ==================== -->
291 <a name="section-MethodDetails"></a>
292 <table class="details" border="1" cellpadding="3"
293 cellspacing="0" width="100%" bgcolor="white">
294 <tr bgcolor="#70b0f0" class="table-header">
295 <td colspan="2" class="table-header">
296 <table border="0" cellpadding="0" cellspacing="0" width="100%">
298 <td align="left"><span class="table-header">Method Details</span></td>
299 <td align="right" valign="top"
300 ><span class="options">[<a href="#section-MethodDetails"
301 class="privatelink" onclick="toggle_private();"
302 >hide private</a>]</span></td>
308 <a name="__init__"></a>
310 <table class="details" border="1" cellpadding="3"
311 cellspacing="0" width="100%" bgcolor="white">
313 <table width="100%" cellpadding="0" cellspacing="0" border="0">
314 <tr valign="top"><td>
315 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
316 <span class="sig-arg">fp</span>,
317 <span class="sig-arg">seekable</span>=<span class="sig-default">1</span>)</span>
318 <br /><em class="fname">(Constructor)</em>
320 </td><td align="right" valign="top"
325 Initialize the class instance and read the headers.
328 rfc822.Message.__init__
329 <dd><em class="note">(inherited documentation)</em></dd>
335 <!-- ==================== NAVIGATION BAR ==================== -->
336 <table class="navbar" border="0" width="100%" cellpadding="0"
337 bgcolor="#a0c0ff" cellspacing="0">
340 <th> <a
341 href="lxml-module.html">Home</a> </th>
344 <th> <a
345 href="module-tree.html">Trees</a> </th>
348 <th> <a
349 href="identifier-index.html">Indices</a> </th>
352 <th> <a
353 href="help.html">Help</a> </th>
355 <!-- Project homepage -->
356 <th class="navbar" align="right" width="100%">
357 <table border="0" cellpadding="0" cellspacing="0">
358 <tr><th class="navbar" align="center"
359 ><a class="navbar" target="_top" href="/">lxml API</a></th>
363 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
365 <td align="left" class="footer">
366 Generated by Epydoc 3.0.1
367 on Thu Jul 9 18:29:53 2020
369 <td align="right" class="footer">
370 <a target="mainFrame" href="http://epydoc.sourceforge.net"
371 >http://epydoc.sourceforge.net</a>
376 <script type="text/javascript">
378 // Private objects are initially displayed (because if
379 // javascript is turned off then we want them to be
380 // visible); but by default, we want to hide them. So hide
381 // them unless we have a cookie that says to show them.