source:
trunk/essentials/dev-lang/python/Lib/MimeWriter.py@
3364
| Last change on this file since 3364 was 3225, checked in by , 19 years ago | |
|---|---|
| File size: 6.2 KB | |
| Line | |
|---|---|
| 1 | """Generic MIME writer. |
| 2 | |
| 3 | This module defines the class MimeWriter. The MimeWriter class implements |
| 4 | a basic formatter for creating MIME multi-part files. It doesn't seek around |
| 5 | the output file nor does it use large amounts of buffer space. You must write |
| 6 | the parts out in the order that they should occur in the final file. |
| 7 | MimeWriter does buffer the headers you add, allowing you to rearrange their |
| 8 | order. |
| 9 | |
| 10 | """ |
| 11 | |
| 12 | |
| 13 | import mimetools |
| 14 | |
| 15 | __all__ = ["MimeWriter"] |
| 16 | |
| 17 | class MimeWriter: |
| 18 | |
| 19 | """Generic MIME writer. |
| 20 | |
| 21 | Methods: |
| 22 | |
| 23 | __init__() |
| 24 | addheader() |
| 25 | flushheaders() |
| 26 | startbody() |
| 27 | startmultipartbody() |
| 28 | nextpart() |
| 29 | lastpart() |
| 30 | |
