imaplib.IMAP4.list()

IMAP4.list([directory[, pattern]]) List mailbox names in directory matching pattern. directory defaults to the top-level mail folder, and pattern defaults to match anything. Returned data contains a list of LIST responses.

imaplib.IMAP4.getquotaroot()

IMAP4.getquotaroot(mailbox) Get the list of quota roots for the named mailbox. This method is part of the IMAP4 QUOTA extension defined in rfc2087.

imaplib.IMAP4.getquota()

IMAP4.getquota(root) Get the quota root‘s resource usage and limits. This method is part of the IMAP4 QUOTA extension defined in rfc2087.

imaplib.IMAP4.getannotation()

IMAP4.getannotation(mailbox, entry, attribute) Retrieve the specified ANNOTATIONs for mailbox. The method is non-standard, but is supported by the Cyrus server.

imaplib.IMAP4.getacl()

IMAP4.getacl(mailbox) Get the ACLs for mailbox. The method is non-standard, but is supported by the Cyrus server.

imaplib.IMAP4.fetch()

IMAP4.fetch(message_set, message_parts) Fetch (parts of) messages. message_parts should be a string of message part names enclosed within parentheses, eg: "(UID BODY[TEXT])". Returned data are tuples of message part envelope and data.

imaplib.IMAP4.expunge()

IMAP4.expunge() Permanently remove deleted items from selected mailbox. Generates an EXPUNGE response for each deleted message. Returned data contains a list of EXPUNGE message numbers in order received.

imaplib.IMAP4.error

exception IMAP4.error Exception raised on any errors. The reason for the exception is passed to the constructor as a string.

imaplib.IMAP4.enable()

IMAP4.enable(capability) Enable capability (see RFC 5161). Most capabilities do not need to be enabled. Currently only the UTF8=ACCEPT capability is supported (see RFC 6855). New in version 3.5: The enable() method itself, and RFC 6855 support.

imaplib.IMAP4.deleteacl()

IMAP4.deleteacl(mailbox, who) Delete the ACLs (remove any rights) set for who on mailbox.