#NEWLINE# def __init__( self , i , s , h , local = None , receiver = None , strict = True , timeout = MAX_PER_LOOKUP_TIME , verbose = False , querytime = 0 ) : #NEWLINE# #INDENT# ( self . s , self . h ) = ( s , h ) #NEWLINE# if ( ( not s ) and h ) : #NEWLINE# #INDENT# self . s = ( 'postmaster@' + h ) #NEWLINE# self . ident = 'helo' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . ident = 'mailfrom' #NEWLINE# #UNINDENT# ( self . l , self . o ) = split_email ( s , h ) #NEWLINE# self . t = str ( int ( time . time ( ) ) ) #NEWLINE# self . d = self . o #NEWLINE# self . p = None #NEWLINE# if querytime : #NEWLINE# #INDENT# self . r = receiver #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . r = 'unknown' #NEWLINE# #UNINDENT# self . cache = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . defexps = dict ( EXPLANATIONS ) #NEWLINE# self . exps = dict ( EXPLANATIONS ) #NEWLINE# self . libspf_local = local #NEWLINE# self . lookups = 0 #NEWLINE# self . strict = strict #NEWLINE# self . timeout = timeout #NEWLINE# self . querytime = querytime #NEWLINE# if ( querytime > 0 ) : #NEWLINE# #INDENT# self . timeout = querytime #NEWLINE# #UNINDENT# self . timer = 0 #NEWLINE# if i : #NEWLINE# #INDENT# self . set_ip ( i ) #NEWLINE# #UNINDENT# self . default_modifier = True #NEWLINE# self . verbose = verbose #NEWLINE# self . authserv = None