msg
= """Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="=====================_590453667==_"
X-OriginalArrivalTime: 05 Feb 2002 03:43:23.0310 (UTC) FILETIME=[42D88CE0:01C1ADF7]
--=====================_590453667==_
Content-Type: multipart/alternative;
boundary="=====================_590453677==_.ALT"
--=====================_590453677==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
--=====================_590453677==_.ALT
Content-Type: text/html; charset="us-ascii"
<b>test B</font></b></html>
--=====================_590453677==_.ALT--
--=====================_590453667==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="att.txt"
--=====================_590453667==_--
global boundaries
, linecount
msg
= mimetools
.Message(mf
)
#print "TYPE: %s" % msg.gettype()
if msg
.getmaintype() == 'multipart':
boundary
= msg
.getparam("boundary")
global boundaries
, linecount
f
= cStringIO
.StringIO(msg
)
getMIMEMsg(multifile
.MultiFile(f
))
if __name__
== '__main__':