class email.headerregistry.BaseHeader(name, value) name and value are passed to BaseHeader from
exception mailbox.FormatError Raised when the data in a file cannot be parsed, such as when an MH instance attempts
append(s, charset=None, errors='strict') Append the string s to the MIME header. Optional
base64.b16encode(s) Encode the bytes-like object s using Base16 and return the
epilogue The epilogue attribute acts the same way as the preamble attribute, except that it contains text
class mailbox.mbox(path, factory=None, create=True) A subclass of Mailbox for mailboxes in mbox format. Parameter
fold_binary(name, value) Headers are folded using the
get_payload(i=None, decode=False) Return the current payload, which will be a list of Message objects when
get_default_type() Return the default content type. Most messages have a default content type of text/plain
set_info(info) Set “info” to info, which should be a string.
Page 18 of 44