#NEWLINE# def __UidCommand( self , command , * args ) : #NEWLINE# #INDENT# if ( self . __record or self . __replay ) : #NEWLINE# #INDENT# cache_key = ( '%s-%s-%s-%s-%s' % ( self . __server , self . __username , self . __current_mailbox , command , ' ' . join ( args ) ) ) #NEWLINE# #UNINDENT# if self . __replay : #NEWLINE# #INDENT# cached_response = self . __cache . Get ( cache_key ) #NEWLINE# if cached_response : #NEWLINE# #INDENT# return cached_response #NEWLINE# #UNINDENT# #UNINDENT# ( r , data ) = self . __mail . uid ( command , * args ) #NEWLINE# self . __AssertOk ( r ) #NEWLINE# if self . __record : #NEWLINE# #INDENT# self . __cache . Set ( cache_key , data ) #NEWLINE# #UNINDENT# return data