PyDocs

Internet Data Handling

email.contentmanager

Storing and Retrieving Content from MIME Parts
Symbols in email.contentmanager

c

ContentManager
Base class for content managers.

g

get_content
Return the payload of the part as either a string (for text parts), an EmailMessage object (for message/rfc822 parts), or a bytes object (for all other non-multipart types).

r

raw_data_manager
This content manager provides only a minimum interface beyond that provided by Message itself: it deals only with text, raw bytes, and Message objects.

s

set_content
Add headers and payload to msg: