Home | History | Annotate | Download | only in python2.7

Lines Matching full:command

116     However, the 'password' argument to the LOGIN command is always
121 Each command returns a tuple: (type, [data, ...]) where 'type'
123 tagged response, or untagged results from command. Each 'data'
136 the command re-tried.
137 "readonly" exceptions imply the command should be re-tried.
141 command are left to the invoker, not to mention the results. Also,
154 self.literal = None # A literal argument to a command
211 # Allow UPPERCASE variants of IMAP4 command methods.
214 raise AttributeError("Unknown IMAP4 command: '%s'" % attr)
275 else prompt server for an update using the 'NOOP' command.
328 """Authenticate command - requires response processing.
377 This is the recommended command before 'LOGOUT'.
573 """Send NOOP command.
689 """IMAP4rev1 extension SORT command.
695 # raise self.error('unimplemented extension command: %s' % name)
714 def store(self, message_set, command, flags):
717 (typ, [data]) = <instance>.store(message_set, command, flags)
721 typ, dat = self._simple_command('STORE', message_set, command, flags)
734 """IMAPrev1 extension THREAD command.
743 def uid(self, command, *args):
744 """Execute "command arg ..." with messages identified by UID,
747 (typ, [data]) = <instance>.uid(command, arg1, arg2, ...)
749 Returns response appropriate to 'command'.
751 command = command.upper()
752 if not command in Commands:
753 raise self.error("Unknown IMAP4 UID command: %s" % command)
754 if self.state not in Commands[command]:
755 raise self.error("command %s illegal in state %s, "
757 (command, self.state,
758 ', '.join(Commands[command])))
760 typ, dat = self._simple_command(name, command, *args)
761 if command in ('SEARCH', 'SORT', 'THREAD'):
762 name = command
780 Assumes command is legal in current state.
784 Returns response appropriate to extension command `name'.
788 # raise self.error('unknown extension command: %s' % name)
822 raise self.error("command %s illegal in state %s, "
899 raise self.abort('command: %s => %s' % (name, val))
901 raise self.error('command: %s => %s' % (name, val))
905 raise self.error('%s command error: %s %s' % (name, typ, data))
918 # Command completion response?
1048 # Must quote command args if non-alphanumeric chars present,
1213 Instantiate with: IMAP4_stream(command)
1215 where "command" is a string that can be passed to subprocess.Popen()
1221 def __init__(self, command):
1222 self.command = command
1235 self.process = subprocess.Popen(self.command,