Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue27331

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Add a policy argument to email.mime.MIMEBase
Type:enhancementStage:resolved
Components:emailVersions:Python 3.6
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: barry, berker.peksag, python-dev, r.david.murray
Priority:normalKeywords:patch

Created on2016-06-16 10:40 byberker.peksag, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
mimebase_policy.diffberker.peksag,2016-06-16 10:40review
Messages (5)
msg268653 -(view)Author: Berker Peksag (berker.peksag)*(Python committer)Date: 2016-06-16 10:40
Quoting Barry's messagemsg268430 fromissue 10839:    On Jun 13, 2016, at 06:38 AM, Berker Peksag wrote:    >I don't know if it's a good idea or API but can we add a 'policy' keyword    >argument to email.mime.base.MIMEBase? Right now, this is the only way to    >change the default policy without using high level functions like    >email.message_from_string():    >    >    m = MIMEMultipart()    >    m.policy = email.policy.default    I think we just need to plumb a `policy` argument through to the ultimate base    class, email.message.Message
msg274880 -(view)Author: R. David Murray (r.david.murray)*(Python committer)Date: 2016-09-07 20:29
I'm going to commit this, but leave the issue open for someone to provide tests.
msg274882 -(view)Author: R. David Murray (r.david.murray)*(Python committer)Date: 2016-09-07 20:46
Sorry, I must have mispaged or something and missed the tests on the first readthrough.
msg274883 -(view)Author: Roundup Robot (python-dev)(Python triager)Date: 2016-09-07 20:48
New changeset481d14cb7595 by R David Murray in branch 'default':#27331: add policy keyword argument to all MIME subclasses.https://hg.python.org/cpython/rev/481d14cb7595
msg274886 -(view)Author: R. David Murray (r.david.murray)*(Python committer)Date: 2016-09-07 20:50
Thanks, Berker.
History
DateUserActionArgs
2022-04-11 14:58:32adminsetgithub: 71518
2016-09-07 20:50:47r.david.murraysetstatus: open -> closed
resolution: fixed
messages: +msg274886

stage: test needed -> resolved
2016-09-07 20:48:59python-devsetnosy: +python-dev
messages: +msg274883
2016-09-07 20:46:18r.david.murraysetmessages: +msg274882
2016-09-07 20:29:37r.david.murraysetmessages: +msg274880
stage: patch review -> test needed
2016-06-16 10:40:47berker.peksagcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp