json.dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)
get(key, default=None) __getitem__(key) Return a representation of the message corresponding to key. If
groups A tuple of Group objects encoding the addresses and groups found in the header value. Addresses that are
major The major version number as an integer
get_unixfrom() Return the message’s envelope header. Defaults to None if the envelope header was never set.
set_payload(payload, charset=None) Set the entire message object’s payload to payload. It is the client’s responsibility
add_sequence(sequence) Add sequence to the list of sequences that include this message.
addr_spec The username@domain portion of the address, correctly quoted for use as a bare address (the second form
addresses A possibly empty tuple of Address objects representing the addresses in the group.
class email.parser.BytesFeedParser(_factory=email.message.Message) Works exactly like FeedParser except that the
Page 34 of 44