ó
Lü˝cc           @   sg   d  Z  d d l Z d d l Z e j d  Z e j d  Z e j d  Z e j d  Z d   Z	 d S(   s-   Recognizes (some) Microsoft Exchange formats.i˙˙˙˙Ns%   did not reach the following recipients   MSEXCH:s   SMTP=(?P<addr>[^;]+); on s   (?P<addr>[^ ]+) on c         C   są   i  } t  j j |   } x% | D] } t j |  r Pq q Wg  Sxd | D]\ } t j |  r` Pn  t j |  } | s t j |  } n  | rG d | | j d  <qG qG W| j	   S(   Ni   t   addr(
   t   emailt	   Iteratorst   body_line_iteratort   scret   searcht   ecret   a1cret   a2cret   groupt   keys(   t   msgt   addrst   itt   linet   mo(    (    s8   /export/web/mailman/mailman/Mailman/Bouncers/Exchange.pyt   process   s    (
   t   __doc__t   ret   email.IteratorsR   t   compileR   R   R   R   R   (    (    (    s8   /export/web/mailman/mailman/Mailman/Bouncers/Exchange.pyt   <module>   s   