email.encoders.encode_quopri(msg) Encodes the payload into quoted-printable form and sets the Conten
base64.decode(input, output) Decode the contents of the binary input file and write the resulting binary data to the
quopri.decodestring(s, header=False) Like decode(), except that it accepts a source
json.load(fp, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw) Deserialize
get_subdir() Return either “new” (if the message should be stored in the new subdirectory) or “cur” (if the message
add_get_handler(key, handler) Record the function handler as the handler for key. For the possible values
discard(key) These methods immediately delete the message. The MH convention of marking a message for deletion by prepending
email.message_from_bytes(s, _class=email.message.Message, *, policy=policy.compat32) Return a message object structure from
__str__() Returns input_charset as a string coerced to lower case. __repr__() is an alias for __str__()
set_flags(flags) Set the flags specified by flags and unset all others. Parameter flags should be the concatenation
Page 41 of 44