homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients adrien-saladin, r.david.murray
Date 2011年01月05日.22:28:56
SpamBayes Score 0.00037475096
Marked as misclassified No
Message-id <1294266543.85.0.485431504882.issue10839@psf.upfronthosting.co.za>
In-reply-to
Content
The behaviour you observe is by design, and documented. The email package needs to be able to handle RFC-invalid input, which includes messages with multiple instances of fields that are supposed to be singletons. It also needs to keep track of the order of headers. Thus its interface is, as documented, a "mapping-like" interface with duplicable keys and an element order.
That said, it would be a valid feature request to have a way to have it generate errors if a field that is supposed to be a singleton per-RFC is added more than once. This will require a registry of such headers...a registry of headers is planned for the next version of the email package (email6), so that would be an appropriate time for this to be implemented. email6 will also have strict and lenient modes, which will also be useful in this context.
History
Date User Action Args
2011年01月05日 22:29:03r.david.murraysetrecipients: + r.david.murray, adrien-saladin
2011年01月05日 22:29:03r.david.murraysetmessageid: <1294266543.85.0.485431504882.issue10839@psf.upfronthosting.co.za>
2011年01月05日 22:28:56r.david.murraylinkissue10839 messages
2011年01月05日 22:28:56r.david.murraycreate

AltStyle によって変換されたページ (->オリジナル) /