;ò
¢)?Bc           @   sc  d  Z  d k Z d k Z d „  Z e d ƒ e d ƒ e d ƒ f e d ƒ e d ƒ e d ƒ f e d	 ƒ e d
 ƒ e d ƒ f e d ƒ e d ƒ e d ƒ f e d ƒ e d ƒ e d ƒ f e d ƒ e d ƒ e d ƒ f e d ƒ e d ƒ e d ƒ f e d ƒ e d ƒ e d ƒ f e d ƒ e d ƒ e d ƒ f e d ƒ e d ƒ e d ƒ f g
 Z e d „ Z d S(   s2   Recognizes simple heuristically delimited bounces.Nc         C   s   t  i |  t  i ƒ Sd  S(   N(   s   res   compiles   patterns
   IGNORECASE(   s   pattern(    (    s,   /var/mailman/Mailman/Bouncers/SimpleMatch.pys   _c   s    s&   here is your list of failed recipientss   here is your returned mails   <(?P<addr>[^>]*)>s   the following addresses hads   transcript of session followss=   <(?P<fulladdr>[^>]*)>|\(expanded from: <?(?P<addr>[^>)]*)>?\)s@   this message was created automatically by mail delivery softwares   original message followss   rcpt to:\s*<(?P<addr>[^>]*)>s*   message from interscan e-mail viruswall nts   end of messages   failed addresses follow:s   message text follows:s   \s*(?P<addr>\S+@\S+)s8   This is the machine generated message from mail service.s1   --- Below the next line is a copy of the message.s?   The following addresses did NOT receive a copy of your message:s   --- Session Transcript ---s   [>]\s*(?P<addr>.*)$s#   Intended recipient:\s*(?P<addr>.*)$s%   --------RETURNED MAIL FOLLOWS--------s&   Undeliverable Address:\s*(?P<addr>.*)$s   Original message attacheds7   This message was created automatically by mail deliverys$   ^---- START OF RETURNED MESSAGE ----s   addressed to '(?P<addr>[^']*)'c   
      C   s  | t j o
 t } n h  } d } xÍ t i i |  ƒ D]¹ } | d j o9 x6 | D]* \ }	 } } |	 i | ƒ o d } PqP qP Wn | d j o` | i | ƒ } | o1 | i d ƒ } | o d | | i d ƒ <që qï | i | ƒ o Pqï q6 q6 W| i ƒ  Sd  S(   Ni    i   s   addr(   s   patternss   Nones   PATTERNSs   addrss   states   emails	   Iteratorss   body_line_iterators   msgs   lines   scres   ecres   acres   searchs   mos   groups   addrs   keys(
   s   msgs   patternss   ecres   addrs   mos   states   addrss   acres   lines   scre(    (    s,   /var/mailman/Mailman/Bouncers/SimpleMatch.pys   processR   s*    
  (   s   __doc__s   res   email.Iteratorss   emails   _cs   PATTERNSs   Nones   process(   s   PATTERNSs   processs   res   _cs   email(    (    s,   /var/mailman/Mailman/Bouncers/SimpleMatch.pys   ?   s   			ÿ 3.