get_file(key) Using the file after calling flush() or close() on the mbox instance may
set_from(from_, time_=None) Set the “From ” line to from_, which should be specified without a leading “From ” or trailing
class email.headerregistry.ContentDispositionHeader A ParameterizedMIMEHeader class that handles the
email.utils.formataddr(pair, charset='utf-8') The inverse of parseaddr(), this takes a 2-tuple of the form (realname
email.charset.add_charset(charset, header_enc=None, body_enc=None, output_charset=None) Add character properties to the global
mimetypes.suffix_map Dictionary mapping suffixes to suffixes. This is used to allow recognition of encoded files for which the
get_folder(folder) Return an MH instance representing the folder whose name is folder. A NoSuchMailboxError
mailcap.getcaps() Returns a dictionary mapping MIME types to a list of mailcap file entries. This dictionary must be passed
add(message) __setitem__(key, message) update(arg)
unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf()
Page 1 of 44