]> granicus.if.org Git - python/commit
#18891: Complete new provisional email API.
authorR David Murray <rdmurray@bitdance.com>
Thu, 17 Oct 2013 02:48:40 +0000 (22:48 -0400)
committerR David Murray <rdmurray@bitdance.com>
Thu, 17 Oct 2013 02:48:40 +0000 (22:48 -0400)
commit3da240fd01e02a31e516847ba865a9f56d7cfcbc
tree056628df84b2e949fb793d75235e38766a16fbcc
parent1a1628819779110854d4e1ab490db2cab80e26b4
#18891: Complete new provisional email API.

This adds EmailMessage and, MIMEPart subclasses of Message
with new API methods, and a ContentManager class used by
the new methods.  Also a new policy setting, content_manager.

Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka,
and reflects their feedback.

I will ideally add some examples of using the new API to the
documentation before the final release.
15 files changed:
Doc/library/email.contentmanager.rst [new file with mode: 0644]
Doc/library/email.message.rst
Doc/library/email.policy.rst
Doc/library/email.rst
Doc/whatsnew/3.4.rst
Lib/email/contentmanager.py [new file with mode: 0644]
Lib/email/message.py
Lib/email/policy.py
Lib/email/utils.py
Lib/test/test_email/__init__.py
Lib/test/test_email/test_contentmanager.py [new file with mode: 0644]
Lib/test/test_email/test_headerregistry.py
Lib/test/test_email/test_message.py
Lib/test/test_email/test_policy.py
Misc/NEWS