email.utils.parsedate_to_datetime(date) The inverse of format_datetime(). Performs the same function as parsedate()
fold(name, value) The email package calls this method with the name and value currently stored in the Message
class mailbox.Message(message=None) A subclass of the
unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf()
binascii.b2a_hex(data) binascii.hexlify(data) Return the hexadecimal representation of the binary data
__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
get_content(msg, *args, **kw) Look up a handler function based on the mimetype of msg (see next paragraph)
mimetypes.add_type(type, ext, strict=True) Add a mapping from the MIME type type to the extension ext. When
set_charset(charset) Set the character set of the payload to charset, which can either be a
Page 6 of 44