#NEWLINE# def on_response( self , response ) : #NEWLINE# #INDENT# if ( not self . first_server_chunk_received ) : #NEWLINE# #INDENT# self . first_server_chunk_received = True #NEWLINE# if ( ( not self . first_client_chunk_received ) and self . server_greeting_pattern . match ( response ) ) : #NEWLINE# #INDENT# self . imap_detected = True #NEWLINE# #UNINDENT# #UNINDENT# return response