flush() All changes to Maildir mailboxes are immediately applied, so this method does nothing.
set_subdir(subdir) Set the subdirectory the message should be stored in. Parameter subdir must be either “new” or “cur”
__getitem__(name) Return the value of the named header field. name should not include the colon field separator. If
MimeTypes.guess_type(url, strict=True) Similar to the guess_type() function, using the tables stored as part of
lock() unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf()
get_payload(i=None, decode=False) Return the current payload, which will be a list of Message objects when
get_labels() Return a list of the names of all user-defined labels used in the mailbox.
get_all(name, failobj=None) Return a list of all the values for the field named name. If there are no such named headers
email.utils.format_datetime(dt, usegmt=False) Like formatdate, but the input is a
set_from(from_, time_=None) Set the “From ” line to from_, which should be specified without a leading “From ” or trailing
Page 20 of 44