cpython/Lib/email
R David Murray abfc37491c #10839: raise an error on add of duplicate unique headers in new email policies
This feature was supposed to be part of the initial email6 checkin, but it got
lost in my big refactoring.

In this patch I'm not providing an easy way to turn off the errors, but they
only happen when a header is added programmatically, and it is almost never
the right thing to do to allow the duplicate to be added.  An application that
needs to add duplicates of unique headers can create a policy subclass to
allow it.
2012-05-29 09:14:44 -04:00
..
mime #14380: Make actual default match docs, fix __init__ order. 2012-03-22 22:40:44 -04:00
__init__.py #11686: add missing entries to email __all__ lists. 2012-03-16 22:43:05 -04:00
_encoded_words.py Add '__all__' to _encoded_words and mark QByteMap as private. 2012-05-27 12:39:54 -04:00
_header_value_parser.py Recognize '<>' as a special case of an angle-addr in header_value_parser. 2012-05-26 14:31:12 -04:00
_parseaddr.py Merge 3.2, fix typos. 2011-11-11 19:39:25 +01:00
_policybase.py #10839: raise an error on add of duplicate unique headers in new email policies 2012-05-29 09:14:44 -04:00
architecture.rst #14731: refactor email policy framework. 2012-05-25 15:01:48 -04:00
base64mime.py Issue #4770: Restrict binascii module to accept only bytes (as specified). 2010-07-27 21:20:15 +00:00
charset.py #11554: reactivate test_email_codecs, and make it pass. 2011-03-15 12:20:02 -04:00
encoders.py Merge #9298 fix. 2011-03-16 16:13:07 -04:00
errors.py #12515: email now registers a defect if the MIME end boundary is missing. 2012-05-27 22:20:42 -04:00
feedparser.py #12515: email now registers a defect if the MIME end boundary is missing. 2012-05-27 22:20:42 -04:00
generator.py #12586: add provisional email policy with new header parsing and folding. 2012-05-25 18:42:14 -04:00
header.py #14291: if a header has non-ascii unicode, default to CTE using utf-8 2012-03-14 02:59:51 -04:00
headerregistry.py Make headerregistry fully part of the provisional api. 2012-05-27 15:03:38 -04:00
iterators.py Patch# 1258 by Christian Heimes: kill basestring. 2007-10-16 18:12:55 +00:00
message.py #10839: raise an error on add of duplicate unique headers in new email policies 2012-05-29 09:14:44 -04:00
parser.py #14731: refactor email policy framework. 2012-05-25 15:01:48 -04:00
policy.py #10839: raise an error on add of duplicate unique headers in new email policies 2012-05-29 09:14:44 -04:00
quoprimime.py Merge #11606: improved body_encode algorithm, no longer produces overlong lines 2011-03-24 12:27:23 -04:00
utils.py #665194: Add a localtime function to email.utils. 2012-05-25 23:22:59 -04:00