email.utils.encode_rfc2231(s, charset=None, language=None) Encode the string s according to
mimetypes.add_type(type, ext, strict=True) Add a mapping from the MIME type type to the extension ext. When
discard(key) Delete the message corresponding to key from the mailbox. If no such message
add(message) __setitem__(key, message) update(arg)
MimeTypes.types_map_inv Tuple containing two dictionaries, mapping MIME types to a list of filename extensions: the first dictionary
email.utils.getaddresses(fieldvalues) This method returns a list of 2-tuples of the form returned by parseaddr()
binascii.b2a_hex(data) binascii.hexlify(data) Return the hexadecimal representation of the binary data
set_from(from_, time_=None) Set the “From ” line to from_, which should be specified without a leading “From ” or trailing
class mailbox.Mailbox A mailbox, which may be inspected and modified. The Mailbox
__contains__(key) Return True if key corresponds to a message, False otherwise.
Page 2 of 44