email.parser: Parsing email messages — Python 3.14.7 documentation

docs.python.org

Tin mới

email.message: Representing an email message

email.generator: Generating MIME documents

Python Module Index

3.14.7 Documentation

The Python Standard Library

Internet Data Handling

email — An email and MIME handling package

email.policy.Policy

Message object structures can be created in one of two ways: they can be created from whole cloth by creating an EmailMessage object, adding headers using the dictionary interface, and adding payload(s) using set_content

email.errors: The exception classes used by the email package.

Create a BytesFeedParser instance. Optional _factory is a no-argument callable; if not specified use the message_factory from the policy. Call _factory whenever a new message object is needed.

email.message.Message

Create a BytesFeedParser instance. Optional _factory is a no-argument callable; if not specified use the message_factory from the policy. Call _factory whenever a new message object is needed.

io.IOBase.readline

Read all the data from the binary file-like object fp, parse the resulting bytes, and return the message object. fp must support both the readline() and the read() methods.