remove(key) __delitem__(key) discard(key) Delete the message corresponding
set_boundary(boundary) Set the boundary parameter of the Content-Type header to boundary
get_content_subtype() Return the message’s sub-content type. This is the subtype part of the string
base64.decodebytes(s) base64.decodestring(s) Decode the bytes-like object
get_bytes(key) Return a byte representation of the message corresponding to key, or raise a
set_flags(flags) Set the flags specified by flags and unset all others.
walk() The walk() method is an all-purpose generator which can be used to iterate over all the parts and subparts
exception email.errors.MessageError This is the base class for all exceptions that the
items() Return a list of 2-tuples containing all the message’s field headers and values.
mimetypes.init(files=None) Initialize the internal data structures. If given, files must be a sequence of file names
Page 37 of 44