(self, command, *args)
return self._untagged_response(typ, dat, name)
Execute "command arg ..." with messages identified by UID,
                rather than message number.

        (typ, [data]) = <instance>.uid(command, arg1, arg2, ...)

        Returns response appropriate to 'command'.
Execute "command arg ..." with messages identified by UID,
                rather than message number.
Execute command arg ... with messages identified by UID rather than message number .
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)
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 )