#NEWLINE# def _command_EHLO( self , ehlo_as ) : #NEWLINE# #INDENT# if ( not self . bannered ) : #NEWLINE# #INDENT# bad_sequence . send ( self . io ) #NEWLINE# return #NEWLINE# #UNINDENT# ehlo_as = ehlo_as . decode ( 'utf-8' ) #NEWLINE# reply = Reply ( '250' , ( 'Hello ' + ehlo_as ) ) #NEWLINE# reply . enhanced_status_code = False #NEWLINE# self . _call_custom_handler ( 'EHLO' , reply , ehlo_as ) #NEWLINE# if ( reply . code == '250' ) : #NEWLINE# #INDENT# reply . message = self . extensions . build_string ( reply . message ) #NEWLINE# self . have_mailfrom = None #NEWLINE# self . have_rcptto = None #NEWLINE# self . ehlo_as = ehlo_as #NEWLINE# #UNINDENT# reply . send ( self . io ) #NEWLINE# self . _check_close_code ( reply )