class mailbox.MHMessage(message=None) A message with MH-specific behaviors. Parameter message has the same meaning
set_boundary(boundary) Set the boundary parameter of the Content-Type header to boundary
close() Maildir instances do not keep any open files and the underlying mailboxes do not support locking, so this
set_flags(flags) Set the flags specified by flags and unset all others.
is_multipart() Return True if the message’s payload is a list of sub-Message objects, otherwise return
base64.decode(input, output) Decode the contents of the binary input file and write the resulting binary data to the
get_file(key) Return a file-like representation of the message corresponding to key, or raise a
raise_on_defect If
get_content(*args, content_manager=None, **kw) Call the get_content method of the content_manager, passing
write(s) Write the string s to the underlying file object. s is encoded using the ASCII codec
Page 41 of 44