imaplib.IMAP4.send()

IMAP4.send(data) Sends data to the remote server. You may override this method.

imaplib.IMAP4.select()

IMAP4.select(mailbox='INBOX', readonly=False) Select a mailbox. Returned data is the count of messages in mailbox (EXISTS response). The default mailbox is 'INBOX'. If the readonly flag is set, modifications to the mailbox are not allowed.

imaplib.IMAP4.search()

IMAP4.search(charset, criterion[, ...]) Search mailbox for matching messages. charset may be None, in which case no CHARSET will be specified in the request to the server. The IMAP protocol requires that at least one criterion be specified; an exception will be raised when the server returns an error. charset must be None if the UTF8=ACCEPT capability was enabled using the enable() command. Example: # M is a connected IMAP4 instance... typ, msgnums = M.search(None, 'FROM', '"LDJ"') # or: ty

imaplib.IMAP4.response()

IMAP4.response(code) Return data for response code if received, or None. Returns the given code, instead of the usual type.

imaplib.IMAP4.rename()

IMAP4.rename(oldmailbox, newmailbox) Rename mailbox named oldmailbox to newmailbox.

imaplib.IMAP4.recent()

IMAP4.recent() Prompt server for an update. Returned data is None if no new messages, else value of RECENT response.

imaplib.IMAP4.readonly

exception IMAP4.readonly This exception is raised when a writable mailbox has its status changed by the server. This is a sub-class of IMAP4.error. Some other client now has write permission, and the mailbox will need to be re-opened to re-obtain write permission.

imaplib.IMAP4.readline()

IMAP4.readline() Reads one line from the remote server. You may override this method.

imaplib.IMAP4.read()

IMAP4.read(size) Reads size bytes from the remote server. You may override this method.

imaplib.IMAP4.proxyauth()

IMAP4.proxyauth(user) Assume authentication as user. Allows an authorised administrator to proxy into any user’s mailbox.