%PDF- %PDF-
Direktori : /lib/mailman/Mailman/Bouncers/ |
Current File : //lib/mailman/Mailman/Bouncers/Postfix.pyo |
� ��ac @ sz d Z d d l Z d d l m Z d � Z e j d e j � Z e j d e j � Z e j d � Z d � Z d � Z d S( sT Parse bounce messages generated by Postfix. This also matches something called `Keftamail' which looks just like Postfix bounces with the word Postfix scratched out and the word `Keftamail' written in in crayon. It also matches something claiming to be `The BNS Postfix program', and `SMTP_Gateway'. Everybody's gotta be different, huh? i����N( t StringIOc C sD | j � r3 x1 | j � D] } t | | � q Wn | j | � d S( N( t is_multipartt get_payloadt flattent append( t msgt leavest part( ( sf /builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncers/Postfix.pyR s s5 [ \t]*the\s*(bns)?\s*(postfix|keftamail|smtp_gateway)s failure reason:$s <(?P<addr>[^>]*)>:c C s� g } t | j � � } d } x� | j � } | s7 Pn | j � } | d k rv t j | � sm t j | � rv d } q! | d k r! | r! t j | � } | r� | j | j d � � q� q! q! | S( Ni i t addr( R R t readlinet rstript pcret matcht rcret acret searchR t group( R t addrst bodyt statet linet mo( ( sf /builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncers/Postfix.pyt findaddr0 s * c C sx | j � d k r d Sg } t | | � xH | D]@ } | j � d k r0 | j d d � j � d k r0 t | � Sq0 Wd S( Ns multipart/mixeds multipart/reports text/plains content-descriptiont t notification( s multipart/mixeds multipart/report( t get_content_typet NoneR t gett lowerR ( R R t subpart( ( sf /builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncers/Postfix.pyt processI s ( t __doc__t ret cStringIOR R t compilet IGNORECASER R R R R ( ( ( sf /builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Bouncers/Postfix.pyt <module> s