Changeset 5248 in project for mime/trunk/mime.html
- Timestamp:
- 07/29/07 19:16:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mime/trunk/mime.html
r5246 r5248 1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <!-- Generated by eggdoc Revision: 1. 17-->2 <!-- Generated by eggdoc Revision: 1.20 --> 3 3 <html> 4 4 <head> … … 26 26 border-top: 1px solid #448; 27 27 padding-left: 1em; 28 } 28 margin-bottom: 1.2em; 29 } 30 DIV.subsubsection { 31 border-top: 1px dotted #99c; 32 /* border-left: 1px solid #99c; */ 33 padding-left: 1em; 34 margin-bottom: 1.2em; 35 } 36 DIV.subsubsubsection { 37 border-top: 1px solid #ddf; 38 padding-left: 1em; 39 margin-bottom: 1.2em; 40 } 41 29 42 DIV.section { 30 43 margin-bottom: 1.5em; … … 45 58 margin: 0 0 1em 0; 46 59 } 47 LI {60 UL LI { 48 61 list-style: none; 49 62 } … … 55 68 color: #113; 56 69 margin-bottom: 0.5em; 70 } 71 H4, H5, H6 { 72 color: #113; 73 margin-bottom: 1.0em; 74 } 75 H5 { 76 font-weight: normal; 77 font-style: italic; 78 font-size: 100%; 79 margin-top: 1.2em; 80 } 81 H6 { 82 font-weight: bold; 83 font-size: 85%; 84 margin-top: 1.2em; 57 85 } 58 86 DIV#eggheader { … … 101 129 padding: 0.2em; 102 130 border: 1px solid #aac; 131 border-collapse: collapse; 103 132 width: 100%; 104 133 } … … 109 138 } 110 139 TH { 111 border-bottom: 1px solid black; 112 } --></style></head> 140 text-align: left; 141 border-bottom: 1px solid #aac; 142 padding: 0.25em 0.5em 0.25em 0.5em; 143 } 144 TD { padding: 0.25em 0.5em 0.25em 0.5em; } 145 --></style></head> 113 146 <body> 114 147 <div id="header"> … … 127 160 <li>1.1 Generating MIME messages</li> 128 161 <li>1.2 fixed .setup script to handle change in argument processing of csc</li> 129 < /ul></div>162 <li>1.3 Added mime-get-attributes (suggested by Moe Aboulkheir)</li></ul></div> 130 163 <div class="section"> 131 164 <h3>Requires</h3> … … 143 176 <p>This egg provides utility procedures to handle Multipurpose Internet Mail Extensions (MIME) messages, defined in RFC2045 through RFC2049. This egg is supposed to be used with the <tt>rfc822</tt> egg.</p> 144 177 <div class="subsection"> 145 < p><b>Quoted-printable encoding/decoding</b></p>178 <h4>Quoted-printable encoding/decoding</h4> 146 179 <p>A few functions to encode/decode Quoted-printable format, defined in RFC2045, section 6.7.</p> 147 180 <dl> … … 155 188 <dd>Decodes a Quoted-printable encoded string <tt>STRING</tt> and returns the result as a string.</dd></dl></div> 156 189 <div class="subsection"> 157 < p><b>Utilities for header fields</b></p>190 <h4>Utilities for header fields</h4> 158 191 <p>A few utility procedures to parse MIME-specific header fields.</p> 159 192 <dl> … … 161 194 <dd>If <tt>FIELD</tt> is a valid header field for MIME-Version, returns its major and minor versions in a list. Otherwise, returns <tt>#f</tt>. It is allowed to pass <tt>#f</tt> to <tt>FIELD</tt>, so that you can directly pass the result of <tt>rfc822-header-ref</tt> to it. Given a parsed header list from <tt>rfc822-header->list</tt>, you can get the MIME version (currently, it should be <tt>(1 0)</tt>) by the following code: 162 195 <pre>(mime-parse-version (rfc822-header-ref headers "mime-version"))</pre>Note: simple regexp such as <tt>"\d+\.\d+"</tt> doesn't do this job, for <tt>FIELD</tt> may contain comments between tokens.</dd> 196 <dt class="definition"><strong>procedure:</strong> (mime-get-attributes INPUT)</dt> 197 <dd>Reads an attribute/value list in the form <tt>;attr1=value1;attr2=value2</tt> from <tt>INPUT</tt> (which should be an open input-port) and returns it as an alist.</dd> 163 198 <dt class="definition"><strong>procedure:</strong> (mime-parse-content-type FIELD)</dt> 164 199 <dd>Parses the "content-type" header field, and returns a list such as: … … 171 206 => "this is some text"</pre></dd></dl></div> 172 207 <div class="subsection"> 173 < p><b>Streaming parser</b></p>208 <h4>Streaming parser</h4> 174 209 <p>The streaming parser is designed so that you can decide how to do with the message body before the entire message is read.</p> 175 210 <dl> … … 243 278 <dd>Reads in the body of mime message, decoding transfer encoding, and returns it as a string or writes it to a file, respectively.</dd></dl></div> 244 279 <div class="subsection"> 245 < p><b>Message generator</b></p>280 <h4>Message generator</h4> 246 281 <p>The message generator generates a RFC822/MIME message out of <tt>:mime-part</tt> objects.</p> 247 282 <dl> … … 310 345 <div class="section"> 311 346 <h3>License</h3> 312 <pre id="license">313 347 <pre>Copyright (c) 2000-2004 Shiro Kawai, All rights reserved. 314 348 … … 338 372 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 339 373 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 340 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</pre></ pre></div></div>374 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</pre></div></div> 341 375 <div id="footer"> 342 376 <hr /><a href="index.html">< Egg index</a>
Note: See TracChangeset
for help on using the changeset viewer.