parameters: (self, command, *args)
return_statement: return self._untagged_response(typ, dat, name)
docstring: Execute "command arg ..." with messages identified by UID,
                  rather than message number.
  
          (typ, [data]) = <instance>.uid(command, arg1, arg2, ...)
  
          Returns response appropriate to 'command'.
docstring_summary: Execute "command arg ..." with messages identified by UID,
                  rather than message number.
docstring_tokens: Execute command arg ... with messages identified by UID rather than message number .
function: def uid(self, command, *args):
          """Execute "command arg ..." with messages identified by UID,
                  rather than message number.
  
          (typ, [data]) = <instance>.uid(command, arg1, arg2, ...)
  
          Returns response appropriate to 'command'.
          """
          command = command.upper()
          if not command in Commands:
              raise self.error("Unknown IMAP4 UID command: %s" % command)
          if self.state not in Commands[command]:
              raise self.error("command %s illegal in state %s, "
                               "only allowed in states %s" %
                               (command, self.state,
                                ', '.join(Commands[command])))
          name = 'UID'
          typ, dat = self._simple_command(name, command, *args)
          if command in ('SEARCH', 'SORT', 'THREAD'):
              name = command
          else:
              name = 'FETCH'
          return self._untagged_response(typ, dat, name)
function_tokens: def uid ( self , command , * args ) : command = command . upper ( ) if not command in Commands : raise self . error ( "Unknown IMAP4 UID command: %s" % command ) if self . state not in Commands [ command ] : raise self . error ( "command %s illegal in state %s, " "only allowed in states %s" % ( command , self . state , ', ' . join ( Commands [ command ] ) ) ) name = 'UID' typ , dat = self . _simple_command ( name , command , * args ) if command in ( 'SEARCH' , 'SORT' , 'THREAD' ) : name = command else : name = 'FETCH' return self . _untagged_response ( typ , dat , name )