;ò
§)?Bc           @   s{   d  Z  d k Z d k Z d k Z d k Z d k l Z e i d Z d Z	 d d „ Z
 d „  Z e d j o e ƒ  n d S(	   sY  Test the bounce detection for files containing bounces.

Usage: %(PROGRAM)s [options] file1 ...

Options:
    -h / --help
        Print this text and exit.

    -v / --verbose
        Verbose output.

    -a / --all
        Run the message through all the bounce modules.  Normally this script
        stops at the first one that finds a match.
N(   s
   BouncerAPIi    s   , s    c         C   s-   t  t ƒ  GH| o	 | GHn t i |  ƒ d  S(   N(   s   __doc__s   globalss   msgs   syss   exits   code(   s   codes   msg(    (    s   /var/mailman/tests/onebounce.pys   usage/   s    	c          C   s¸  y/ t  i  t i d d d d d g ƒ \ } } Wn% t  i j
 o } t d | ƒ n Xd } } xo | D]g \ }  }
 |  d d f j o t d ƒ qh |  d	 d
 f j o
 d } qh |  d d f j o
 d } qh qh WxÞ | D]Ö }	 t |	 ƒ } t i | ƒ } | i ƒ  x¨ t i D] } d | } t | ƒ t i | i | ƒ } | t i j o | Gd GH| o Pqin | o | o | Gd GHq¬q| Gd Gt i | ƒ GH| o PqqWqÚ Wd  S(   Ni   s   hvas   helps   verboses   alli    s   -hs   --helps   -vs	   --verboses   -as   --alls   Mailman.Bouncers.s
   got a Stops   found no matchess   found(   s   getopts   syss   argvs   optss   argss   errors   msgs   usages   alls   verboses   opts   args   files   opens   fps   emails   message_from_files   closes
   BouncerAPIs   BOUNCE_PIPELINEs   modules   modnames
   __import__s   moduless   processs   addrss   Stops
   COMMASPACEs   join(   s   opts   fps   alls   verboses   argss   modnames   modules   msgs   addrss   files   args   opts(    (    s   /var/mailman/tests/onebounce.pys   main7   sD    
 
 

 

		s   __main__(   s   __doc__s   syss   emails   getopts   pathss   Mailman.Bouncerss
   BouncerAPIs   argvs   PROGRAMs
   COMMASPACEs   usages   mains   __name__(	   s   pathss
   BouncerAPIs   syss   PROGRAMs   usages   getopts   mains   emails
   COMMASPACE(    (    s   /var/mailman/tests/onebounce.pys   ?!   s   					&