home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Languages / Python / python-14-src / Doc / libmimetools.tex / node2_ct.html < prev    next >
LaTeX Document  |  1997-01-17  |  2.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 41 64 | 64 69 74 69 6f 6e 61 6c |ts of Ad|ditional|
|000000b0| 20 4d 65 74 68 6f 64 73 | 20 6f 66 20 4d 65 73 73 | Methods| of Mess|
|000000c0| 61 67 65 20 6f 62 6a 65 | 63 74 73 3c 2f 54 49 54 |age obje|cts</TIT|
|000000d0| 4c 45 3e 0a 0a 3c 4d 45 | 54 41 20 48 54 54 50 2d |LE>..<ME|TA HTTP-|
|000000e0| 45 51 55 49 56 3d 22 43 | 6f 6e 74 65 6e 74 2d 54 |EQUIV="C|ontent-T|
|000000f0| 79 70 65 22 20 43 4f 4e | 54 45 4e 54 3d 22 74 65 |ype" CON|TENT="te|
|00000100| 78 74 2f 68 74 6d 6c 3b | 20 63 68 61 72 73 65 74 |xt/html;| charset|
|00000110| 3d 75 74 66 2d 38 22 3e | 0a 3c 4d 45 54 41 20 4e |=utf-8">|.<META N|
|00000120| 41 4d 45 3d 22 76 69 65 | 77 70 6f 72 74 22 20 43 |AME="vie|wport" C|
|00000130| 4f 4e 54 45 4e 54 3d 22 | 77 69 64 74 68 3d 64 65 |ONTENT="|width=de|
|00000140| 76 69 63 65 2d 77 69 64 | 74 68 2c 20 69 6e 69 74 |vice-wid|th, init|
|00000150| 69 61 6c 2d 73 63 61 6c | 65 3d 31 2e 30 22 3e 0a |ial-scal|e=1.0">.|
|00000160| 3c 4d 45 54 41 20 4e 41 | 4d 45 3d 22 47 65 6e 65 |<META NA|ME="Gene|
|00000170| 72 61 74 6f 72 22 20 43 | 4f 4e 54 45 4e 54 3d 22 |rator" C|ONTENT="|
|00000180| 4c 61 54 65 58 32 48 54 | 4d 4c 20 76 32 30 32 32 |LaTeX2HT|ML v2022|
|00000190| 22 3e 0a 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 53 |">..<LIN|K REL="S|
|000001a0| 54 59 4c 45 53 48 45 45 | 54 22 20 48 52 45 46 3d |TYLESHEE|T" HREF=|
|000001b0| 22 6c 69 62 6d 69 6d 65 | 74 6f 6f 6c 73 2e 63 73 |"libmime|tools.cs|
|000001c0| 73 22 3e 0a 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |s">..<LI|NK REL="|
|000001d0| 70 72 65 76 69 6f 75 73 | 22 20 48 52 45 46 3d 22 |previous|" HREF="|
|000001e0| 6e 6f 64 65 31 5f 6d 6e | 2e 68 74 6d 6c 22 3e 0a |node1_mn|.html">.|
|000001f0| 3c 4c 49 4e 4b 20 52 45 | 4c 3d 22 75 70 22 20 48 |<LINK RE|L="up" H|
|00000200| 52 45 46 3d 22 6e 6f 64 | 65 31 5f 6d 6e 2e 68 74 |REF="nod|e1_mn.ht|
|00000210| 6d 6c 22 3e 0a 3c 2f 48 | 45 41 44 3e 0a 20 0a 3c |ml">.</H|EAD>. .<|
|00000220| 42 4f 44 59 20 62 67 63 | 6f 6c 6f 72 3d 22 23 66 |BODY bgc|olor="#f|
|00000230| 66 66 66 66 66 22 20 74 | 65 78 74 3d 22 23 30 30 |fffff" t|ext="#00|
|00000240| 30 30 30 30 22 20 6c 69 | 6e 6b 3d 22 23 39 39 34 |0000" li|nk="#994|
|00000250| 34 45 45 22 20 76 6c 69 | 6e 6b 3d 22 23 30 30 30 |4EE" vli|nk="#000|
|00000260| 30 66 66 22 20 61 6c 69 | 6e 6b 3d 22 23 30 30 66 |0ff" ali|nk="#00f|
|00000270| 66 30 30 22 3e 0a 0a 3c | 48 32 3e 3c 41 20 49 44 |f00">..<|H2><A ID|
|00000280| 3d 22 53 45 43 54 49 4f | 4e 30 30 30 31 31 30 30 |="SECTIO|N0001100|
|00000290| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 22 3e 0a |00000000|00000">.|
|000002a0| 41 64 64 69 74 69 6f 6e | 61 6c 20 4d 65 74 68 6f |Addition|al Metho|
|000002b0| 64 73 20 6f 66 20 4d 65 | 73 73 61 67 65 20 6f 62 |ds of Me|ssage ob|
|000002c0| 6a 65 63 74 73 3c 2f 41 | 3e 0a 3c 2f 48 32 3e 0a |jects</A|>.</H2>.|
|000002d0| 6d 69 6d 65 74 6f 6f 6c | 73 2e 4d 65 73 73 61 67 |mimetool|s.Messag|
|000002e0| 65 20 4d 65 74 68 6f 64 | 73 0a 0a 3c 50 3e 0a 54 |e Method|s..<P>.T|
|000002f0| 68 65 20 6d 69 6d 65 74 | 6f 6f 6c 73 2e 4d 65 73 |he mimet|ools.Mes|
|00000300| 73 61 67 65 20 63 6c 61 | 73 73 20 64 65 66 69 6e |sage cla|ss defin|
|00000310| 65 73 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |es the f|ollowing|
|00000320| 20 6d 65 74 68 6f 64 73 | 20 69 6e 0a 61 64 64 69 | methods| in.addi|
|00000330| 74 69 6f 6e 20 74 6f 20 | 74 68 65 20 72 66 63 38 |tion to |the rfc8|
|00000340| 32 32 2e 4d 65 73 73 61 | 67 65 20 63 6c 61 73 73 |22.Messa|ge class|
|00000350| 3a 0a 0a 3c 50 3e 0a 0a | 3c 50 3e 0a 3c 42 52 3e |:..<P>..|<P>.<BR>|
|00000360| 0a 3c 49 4d 47 0a 20 20 | 53 54 59 4c 45 3d 22 68 |.<IMG. |STYLE="h|
|00000370| 65 69 67 68 74 3a 20 32 | 2e 31 37 65 78 3b 20 76 |eight: 2|.17ex; v|
|00000380| 65 72 74 69 63 61 6c 2d | 61 6c 69 67 6e 3a 20 31 |ertical-|align: 1|
|00000390| 37 36 2e 35 35 65 78 3b | 20 22 20 53 52 43 3d 22 |76.55ex;| " SRC="|
|000003a0| 69 6d 67 37 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |img7.png|". ALT="|
|000003b0| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|000003c0| 7b 67 65 74 70 6c 69 73 | 74 7d 7b 7d 0a 52 65 74 |{getplis|t}{}.Ret|
|000003d0| 75 72 6e 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 |urn the |paramete|
|000003e0| 72 20 6c 69 73 74 20 6f | 66 20 74 68 65 20 5c 63 |r list o|f the \c|
|000003f0| 6f 64 65 7b 43 6f 6e 74 | 65 6e 74 2d 74 79 70 65 |ode{Cont|ent-type|
|00000400| 2e 2e 2e 0a 2e 2e 2e 20 | 77 69 6c 6c 20 72 65 74 |....... |will ret|
|00000410| 75 72 6e 20 74 68 65 20 | 50 79 74 68 6f 6e 20 6c |urn the |Python l|
|00000420| 69 73 74 20 5c 63 6f 64 | 65 7b 5b 27 73 70 61 6d |ist \cod|e{['spam|
|00000430| 3d 31 27 2c 0a 27 73 70 | 61 6d 3d 32 27 2c 20 27 |=1',.'sp|am=2', '|
|00000440| 53 70 61 6d 27 5d 7d 2e | 0a 5c 65 6e 64 7b 66 75 |Spam']}.|.\end{fu|
|00000450| 6e 63 64 65 73 63 7d 22 | 3e 0a 3c 42 52 3e 0a 0a |ncdesc}"|>.<BR>..|
|00000460| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00000470| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 32 |STYLE="h|eight: 2|
|00000480| 2e 31 37 65 78 3b 20 76 | 65 72 74 69 63 61 6c 2d |.17ex; v|ertical-|
|00000490| 61 6c 69 67 6e 3a 20 31 | 37 36 2e 34 31 65 78 3b |align: 1|76.41ex;|
|000004a0| 20 22 20 53 52 43 3d 22 | 69 6d 67 38 2e 70 6e 67 | " SRC="|img8.png|
|000004b0| 22 0a 20 41 4c 54 3d 22 | 5c 62 65 67 69 6e 7b 66 |". ALT="|\begin{f|
|000004c0| 75 6e 63 64 65 73 63 7d | 7b 67 65 74 70 61 72 61 |uncdesc}|{getpara|
|000004d0| 6d 7d 7b 6e 61 6d 65 7d | 0a 52 65 74 75 72 6e 20 |m}{name}|.Return |
|000004e0| 74 68 65 20 5c 76 61 72 | 7b 76 61 6c 75 65 7d 20 |the \var|{value} |
|000004f0| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 70 61 72 |of the f|irst par|
|00000500| 61 6d 65 74 65 72 20 28 | 2e 2e 2e 0a 2e 2e 2e 6f |ameter (|.......o|
|00000510| 74 65 73 20 6f 66 20 74 | 68 65 20 66 6f 72 6d 0a |tes of t|he form.|
|00000520| 5c 76 61 72 7b 26 6c 74 | 3b 2e 2e 2e 26 67 74 3b |\var{&lt|;...&gt;|
|00000530| 7d 20 6f 72 20 5c 76 61 | 72 7b 27 27 2e 2e 2e 27 |} or \va|r{''...'|
|00000540| 27 7d 2c 20 74 68 65 73 | 65 20 61 72 65 20 72 65 |'}, thes|e are re|
|00000550| 6d 6f 76 65 64 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 |moved..\|end{func|
|00000560| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00000570| 3e 0a 3c 42 52 3e 0a 3c | 49 4d 47 0a 20 20 53 54 |>.<BR>.<|IMG. ST|
|00000580| 59 4c 45 3d 22 68 65 69 | 67 68 74 3a 20 32 2e 33 |YLE="hei|ght: 2.3|
|00000590| 38 65 78 3b 20 76 65 72 | 74 69 63 61 6c 2d 61 6c |8ex; ver|tical-al|
|000005a0| 69 67 6e 3a 20 31 37 36 | 2e 34 30 65 78 3b 20 22 |ign: 176|.40ex; "|
|000005b0| 20 53 52 43 3d 22 69 6d | 67 39 2e 70 6e 67 22 0a | SRC="im|g9.png".|
|000005c0| 20 41 4c 54 3d 22 5c 62 | 65 67 69 6e 7b 66 75 6e | ALT="\b|egin{fun|
|000005d0| 63 64 65 73 63 7d 7b 67 | 65 74 65 6e 63 6f 64 69 |cdesc}{g|etencodi|
|000005e0| 6e 67 7d 7b 7d 0a 52 65 | 74 75 72 6e 20 74 68 65 |ng}{}.Re|turn the|
|000005f0| 20 65 6e 63 6f 64 69 6e | 67 20 73 70 65 63 69 66 | encodin|g specif|
|00000600| 69 65 64 20 69 6e 20 74 | 68 65 20 5c 73 61 6d 70 |ied in t|he \samp|
|00000610| 7b 43 6f 6e 74 65 2e 2e | 2e 0a 2e 2e 2e 20 72 65 |{Conte..|..... re|
|00000620| 74 75 72 6e 20 5c 63 6f | 64 65 7b 27 27 37 62 69 |turn \co|de{''7bi|
|00000630| 74 27 27 7d 2e 20 54 68 | 65 0a 65 6e 63 6f 64 69 |t''}. Th|e.encodi|
|00000640| 6e 67 20 69 73 20 63 6f | 6e 76 65 72 74 65 64 20 |ng is co|nverted |
|00000650| 74 6f 20 6c 6f 77 65 72 | 20 63 61 73 65 2e 0a 5c |to lower| case..\|
|00000660| 65 6e 64 7b 66 75 6e 63 | 64 65 73 63 7d 22 3e 0a |end{func|desc}">.|
|00000670| 3c 42 52 3e 0a 0a 3c 50 | 3e 0a 3c 42 52 3e 0a 3c |<BR>..<P|>.<BR>.<|
|00000680| 49 4d 47 0a 20 20 53 54 | 59 4c 45 3d 22 68 65 69 |IMG. ST|YLE="hei|
|00000690| 67 68 74 3a 20 32 2e 31 | 37 65 78 3b 20 76 65 72 |ght: 2.1|7ex; ver|
|000006a0| 74 69 63 61 6c 2d 61 6c | 69 67 6e 3a 20 31 37 36 |tical-al|ign: 176|
|000006b0| 2e 35 35 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.55ex; "| SRC="im|
|000006c0| 67 31 30 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |g10.png"|. ALT="\|
|000006d0| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|000006e0| 67 65 74 74 79 70 65 7d | 7b 7d 0a 52 65 74 75 72 |gettype}|{}.Retur|
|000006f0| 6e 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 74 79 |n the me|ssage ty|
|00000700| 70 65 20 28 6f 66 20 74 | 68 65 20 66 6f 72 6d 20 |pe (of t|he form |
|00000710| 5c 73 61 6d 70 7b 5c 76 | 61 72 7b 74 79 70 65 2e |\samp{\v|ar{type.|
|00000720| 2e 2e 0a 2e 2e 2e 65 74 | 75 72 6e 20 5c 63 6f 64 |......et|urn \cod|
|00000730| 65 7b 27 27 74 65 78 74 | 2f 70 6c 61 69 6e 27 27 |e{''text|/plain''|
|00000740| 7d 2e 20 54 68 65 20 74 | 79 70 65 20 69 73 20 63 |}. The t|ype is c|
|00000750| 6f 6e 76 65 72 74 65 64 | 20 74 6f 20 6c 6f 77 65 |onverted| to lowe|
|00000760| 72 0a 63 61 73 65 2e 0a | 5c 65 6e 64 7b 66 75 6e |r.case..|\end{fun|
|00000770| 63 64 65 73 63 7d 22 3e | 0a 3c 42 52 3e 0a 0a 3c |cdesc}">|.<BR>..<|
|00000780| 50 3e 0a 3c 42 52 3e 0a | 3c 49 4d 47 0a 20 20 53 |P>.<BR>.|<IMG. S|
|00000790| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 2e |TYLE="he|ight: 2.|
|000007a0| 33 38 65 78 3b 20 76 65 | 72 74 69 63 61 6c 2d 61 |38ex; ve|rtical-a|
|000007b0| 6c 69 67 6e 3a 20 31 37 | 36 2e 34 30 65 78 3b 20 |lign: 17|6.40ex; |
|000007c0| 22 20 53 52 43 3d 22 69 | 6d 67 31 31 2e 70 6e 67 |" SRC="i|mg11.png|
|000007d0| 22 0a 20 41 4c 54 3d 22 | 5c 62 65 67 69 6e 7b 66 |". ALT="|\begin{f|
|000007e0| 75 6e 63 64 65 73 63 7d | 7b 67 65 74 6d 61 69 6e |uncdesc}|{getmain|
|000007f0| 74 79 70 65 7d 7b 7d 0a | 52 65 74 75 72 6e 20 74 |type}{}.|Return t|
|00000800| 68 65 20 6d 61 69 6e 20 | 74 79 70 65 20 61 73 20 |he main |type as |
|00000810| 73 70 65 63 69 66 69 65 | 64 20 69 6e 20 74 68 65 |specifie|d in the|
|00000820| 20 5c 73 61 6d 70 7b 43 | 2e 2e 2e 0a 2e 2e 2e 72 | \samp{C|.......r|
|00000830| 65 74 75 72 6e 20 5c 63 | 6f 64 65 7b 27 27 74 65 |eturn \c|ode{''te|
|00000840| 78 74 27 27 7d 2e 20 54 | 68 65 20 6d 61 69 6e 20 |xt''}. T|he main |
|00000850| 74 79 70 65 20 69 73 0a | 63 6f 6e 76 65 72 74 65 |type is.|converte|
|00000860| 64 20 74 6f 20 6c 6f 77 | 65 72 20 63 61 73 65 2e |d to low|er case.|
|00000870| 0a 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 22 |.\end{fu|ncdesc}"|
|00000880| 3e 0a 3c 42 52 3e 0a 0a | 3c 50 3e 0a 3c 42 52 3e |>.<BR>..|<P>.<BR>|
|00000890| 0a 3c 49 4d 47 0a 20 20 | 53 54 59 4c 45 3d 22 68 |.<IMG. |STYLE="h|
|000008a0| 65 69 67 68 74 3a 20 32 | 2e 31 37 65 78 3b 20 76 |eight: 2|.17ex; v|
|000008b0| 65 72 74 69 63 61 6c 2d | 61 6c 69 67 6e 3a 20 31 |ertical-|align: 1|
|000008c0| 37 36 2e 36 38 65 78 3b | 20 22 20 53 52 43 3d 22 |76.68ex;| " SRC="|
|000008d0| 69 6d 67 31 32 2e 70 6e | 67 22 0a 20 41 4c 54 3d |img12.pn|g". ALT=|
|000008e0| 22 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |"\begin{|funcdesc|
|000008f0| 7d 7b 67 65 74 73 75 62 | 74 79 70 65 7d 7b 7d 0a |}{getsub|type}{}.|
|00000900| 52 65 74 75 72 6e 20 74 | 68 65 20 73 75 62 74 79 |Return t|he subty|
|00000910| 70 65 20 61 73 20 73 70 | 65 63 69 66 69 65 64 20 |pe as sp|ecified |
|00000920| 69 6e 20 74 68 65 20 5c | 73 61 6d 70 7b 43 6f 6e |in the \|samp{Con|
|00000930| 74 2e 2e 2e 0a 2e 2e 2e | 20 72 65 74 75 72 6e 20 |t.......| return |
|00000940| 5c 63 6f 64 65 7b 27 27 | 70 6c 61 69 6e 27 27 7d |\code{''|plain''}|
|00000950| 2e 20 54 68 65 20 73 75 | 62 74 79 70 65 20 69 73 |. The su|btype is|
|00000960| 0a 63 6f 6e 76 65 72 74 | 65 64 20 74 6f 20 6c 6f |.convert|ed to lo|
|00000970| 77 65 72 20 63 61 73 65 | 2e 0a 5c 65 6e 64 7b 66 |wer case|..\end{f|
|00000980| 75 6e 63 64 65 73 63 7d | 22 3e 0a 3c 42 52 3e 0a |uncdesc}|">.<BR>.|
|00000990| 3c 48 52 3e 0a 0a 3c 2f | 42 4f 44 59 3e 0a 3c 2f |<HR>..</|BODY>.</|
|000009a0| 48 54 4d 4c 3e 0a | |HTML>. | |
+--------+-------------------------+-------------------------+--------+--------+