ó
Kü½cc           @   s>   d  Z  d d l Z d d l m Z e j d ƒ Z d „  Z d S(   sE   Recognizes a class of messages from AOL that report only Screen Name.iÿÿÿÿN(   t	   parseaddrs7   mail to the following recipients could not be deliveredc         C   sú   |  j  ƒ  d k r d  St |  j d d ƒ ƒ d j ƒ  j d ƒ sE d  Sg  } t } x¢ |  j d t ƒ j ƒ  D]ˆ } t	 j
 | ƒ r‹ t } qj n  | rj | j ƒ  } | rò t j
 d | ƒ r¹ Pn  t j
 d | ƒ rÛ | j | ƒ qï | j d	 | ƒ qò qj qj W| S(
   Ns
   text/plaint   fromt    i   s   @aol.comt   decodes   \st   @s
   %s@aol.com(   t   get_content_typeR    t   gett   lowert   endswitht   Falset   get_payloadt   Truet
   splitlinest   scret   searcht   stript   ret   append(   t   msgt   addrst   foundt   linet   local(    (    s3   /export/web/mailman/mailman/Mailman/Bouncers/AOL.pyt   process   s&    +(   t   __doc__R   t   email.UtilsR    t   compileR   R   (    (    (    s3   /export/web/mailman/mailman/Mailman/Bouncers/AOL.pyt   <module>   s   