#NEWLINE# def check( i , s , h , local = None , receiver = None , verbose = False ) : #NEWLINE# #INDENT# "Test an incoming MAIL FROM:<s>, from a client with ip address i.\n    h is the HELO/EHLO domain name.  This is the pre-RFC SPF Classic interface.\n    Applications written for pySPF 1.6/1.7 can use this interface to allow\n    pySPF2 to be a drop in replacement for older versions.  With the exception\n    of result codes, performance in RFC 4408 compliant.\n\n    Returns (result, code, explanation) where result in\n    ['pass', 'unknown', 'fail', 'error', 'softfail', 'none', 'neutral' ].\n\n    Example:\n    #>>> check(i='61.51.192.42', s='liukebing@bcc.com', h='bmsi.com')\n\n    " #NEWLINE# ( res , code , exp ) = query ( i = i , s = s , h = h , local = local , receiver = receiver , verbose = verbose ) . check ( ) #NEWLINE# if ( res == 'permerror' ) : #NEWLINE# #INDENT# res = 'unknown' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( res == 'tempfail' ) : #NEWLINE# #INDENT# ( res == 'error' ) #NEWLINE# #UNINDENT# #UNINDENT# return ( res , code , exp )