header_encoding If the character set must be encoded before it can be used in an email header, this attribute will be set to
body_encode(string) Body-encode the string string. The type of encoding (base64 or
get_charsets(failobj=None) Return a list containing the character set names in the message. If the message is a
email.utils.unquote(str) Return a new string which is an unquoted version of str. If str ends and
is_multipart() Return True if the message’s payload is a list of sub-Message objects, otherwise return
discard(key) These methods immediately delete the message. The MH convention of marking a message for deletion by prepending
base64.decode(input, output) Decode the contents of the binary input file and write the resulting binary data to the
class mailbox.MMDFMessage(message=None) A message with MMDF-specific behaviors. Parameter message has the same meaning
class email.parser.Parser(_class=email.message.Message, *, policy=policy.compat32) The constructor for the Parser
get_folder(folder) Return a Maildir instance representing the folder whose name is folder. A No
Page 43 of 44