#NEWLINE# def on_request( self , request ) : #NEWLINE# #INDENT# self . first_client_chunk_received = True #NEWLINE# if ( not self . imap_detected ) : #NEWLINE# #INDENT# return request #NEWLINE# #UNINDENT# if self . client_auth_pattern . match ( request ) : #NEWLINE# #INDENT# self . log ( logging . CRITICAL , 'Authentication credentials in cleartext IMAP traffic' ) #NEWLINE# self . log_event ( logging . ERROR , connection . AttackEvent ( self . connection , self . name , True , None ) ) #NEWLINE# self . connection . vuln_notify ( util . vuln . VULN_CLEARTEXT_AUTH ) #NEWLINE# #UNINDENT# return request