mς
­fIc           @   sO   d  k  Z  d  k Z d  k Z d Z d   Z d   Z e d j o e   n d  S(   NsL  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

test A
--=====================_590453677==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<b>test B</font></b></html>

--=====================_590453677==_.ALT--

--=====================_590453667==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="att.txt"

Attached Content.
Attached Content.
Attached Content.
Attached Content.

--=====================_590453667==_--

c         C   s   t  i |   } | i   d j oS | i d  } t d 7a |  i |  x |  i	   o t
 |   qK W|  i   n |  i   } t t |  7a d  S(   Nt	   multipartt   boundaryi   (   t	   mimetoolst   Messaget   mft   msgt   getmaintypet   getparamR   t
   boundariest   pusht   nextt
   getMIMEMsgt   popt	   readlinest   linest	   linecountt   len(   R   R   R   R   (    (    t0   /mit/python/lib/python2.4/test/test_multifile.pyR   '   s     
 c          C   s2   d a  d a t i t  }  t t i |    d  S(   Ni    (	   R   R   t	   cStringIOt   StringIOR   t   fR   t	   multifilet	   MultiFile(   R   (    (    R   t	   test_main8   s     t   __main__(   R   R   R   R   R   R   t   __name__(   R   R   R   R   R   R   (    (    R   t   ?   s   			"			