source: trunk/essentials/dev-lang/python/Lib/MimeWriter.py@ 3364

Last change on this file since 3364 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 6.2 KB
Line 
1"""Generic MIME writer.
2
3This module defines the class MimeWriter. The MimeWriter class implements
4a basic formatter for creating MIME multi-part files. It doesn't seek around
5the output file nor does it use large amounts of buffer space. You must write
6the parts out in the order that they should occur in the final file.
7MimeWriter does buffer the headers you add, allowing you to rearrange their
8order.
9
10"""
11
12
13import mimetools
14
15__all__ = ["MimeWriter"]
16
17class 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