Issue 20476: If new email policies are used, default message factory should be EmailMessage (original) (raw)

Issue20476

Created on 2014-02-01 22:08 by r.david.murray, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
use_emailmessage.patch r.david.murray,2014-02-01 22:08 review
message_factory.diff r.david.murray,2016-09-07 23:57 review
Messages (6)
msg209921 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-02-01 22:08
This was part of the design of the new stuff added in 3.4, so it is a bug that it doesn't work...somehow I missed implementing this detail. The full implementation should make this a policy setting, so that a custom policy could specify its own factory. However, since 3.4 is in beta it would be a bad time to add that to the policy. The patch proposed here implements the required behavior by hardcoding any non-compat32 policy to use EmailMessage instead of Message in feedparser.
msg210482 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-02-07 15:44
New changeset 77082b818676 by R David Murray in branch 'default': #20476: use EmailMessage as factory if non-compat32 policy is used. http://hg.python.org/cpython/rev/77082b818676
msg210483 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-02-07 15:46
I'm leaving this open and changing the version to 3.5 to remind myself to fix this right once default is open for 3.5 changes.
msg274922 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-09-07 23:57
Here's the patch to add the message_factory policy attribute.
msg275480 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-09-09 22:40
New changeset 9ba8f4be0651 by R David Murray in branch 'default': #20476: add a message_factory policy attribute to email. https://hg.python.org/cpython/rev/9ba8f4be0651
msg275563 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-09-10 04:25
New changeset 8375b8d54bf7 by R David Murray in branch 'default': #20476: Deal with the message_factory circular import differently. https://hg.python.org/cpython/rev/8375b8d54bf7
History
Date User Action Args
2022-04-11 14:57:57 admin set github: 64675
2016-09-10 04:25:34 python-dev set messages: +
2016-09-09 23:05:04 r.david.murray set status: open -> closedtype: resource usage -> enhancementstage: needs patch -> resolvedresolution: fixedversions: + Python 3.6, - Python 3.5
2016-09-09 22:40:36 python-dev set messages: +
2016-09-07 23:57:19 r.david.murray set files: + message_factory.diffmessages: +
2015-10-02 04:43:43 aj guy set assignee: docs@pythontype: behavior -> resource usagecomponents: + Documentation, Library (Lib)nosy: + docs@python, aj guy
2014-02-07 15:46:14 r.david.murray set stage: commit review -> needs patchmessages: + versions: + Python 3.5, - Python 3.4
2014-02-07 15:44:48 python-dev set nosy: + python-devmessages: +
2014-02-01 22:08:05 r.david.murray create