major The major version number as an integer
__str__() The str value of the object is the address quoted according to
email.encoders.encode_base64(msg) Encodes the payload into base64 form and sets the Content-Transfer-Encoding
set_sequences(sequences) Re-define the sequences that exist in the mailbox based upon sequences, a dictionary of names
set_default_type(ctype) Set the default content type. ctype should either be text/plain or
email.encoders.encode_7or8bit(msg) This doesn’t actually modify the message’s payload, but it does set the
header_source_parse(sourcelines) The name is parsed as everything up to the ‘:‘ and returned unmodified. The value
__str__() Equivalent to as_string(). Allows str(msg) to produce a string containing the formatted
class email.generator.Generator(outfp, mangle_from_=True, maxheaderlen=78, *, policy=None) The constructor for the Generator
email.utils.collapse_rfc2231_value(value, errors='replace', fallback_charset='us-ascii') When a header parameter is encoded
Page 35 of 44