mimetypes.common_types Dictionary mapping filename extensions to non-standard, but commonly found MIME types.
email.utils.parsedate_to_datetime(date) The inverse of format_datetime(). Performs the same function as parsedate()
base64.b64decode(s, altchars=None, validate=False) Decode the Base64 encoded bytes-like object
set_content(*args, content_manager=None, **kw) Call the set_content method of the content_manager, passing
iter_parts() Return an iterator over all of the immediate sub-parts of the message, which will be empty for a non-multipart
class mailbox.Mailbox A mailbox, which may be inspected and modified. The Mailbox
class mailbox.Message(message=None) A subclass of the
__bytes__() Equivalent to as_bytes(). Allows bytes(msg) to produce a bytes object containing the formatted
email.utils.formataddr(pair, charset='utf-8') The inverse of parseaddr(), this takes a 2-tuple of the form (realname
set_from(from_, time_=None) Set the “From ” line to from_, which should be specified without a leading “From ” or trailing
Page 7 of 44