-
-
Couldn't load subscription status.
- Fork 33.2k
gh-135854: Fix function email.message.Message.get_boundary strips boundaries twice
#135891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Lib/test/test_email/test_email.py
Outdated
| def test_boundary_stripped_only_once(self): | ||
| eq = self.assertEqual | ||
| msg = email.message_from_string('''\ | ||
| MIME-Version: 1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please properly indent this string block?
Lib/test/test_email/test_email.py
Outdated
| eq(len(msg.get_payload()), 2) | ||
|
|
||
| msg = email.message_from_string('''\ | ||
| MIME-Version: 1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also this
|
Hi all, it's been a month and a half since this PR is created. Could some core dev give this PR a review? Thanks. |
email.message.get_boundary() invokes email.message.get_param() and utils.collapse_rfc2231_value(), causing boundaries being stripped twice. This PR passes
unquote=Falsetoemail.message.get_param()to avoid the redundant stripping.