Skip to content

Conversation

tanloong
Copy link
Contributor

@tanloong tanloong commented Jun 24, 2025

email.message.get_boundary() invokes email.message.get_param() and utils.collapse_rfc2231_value(), causing boundaries being stripped twice. This PR passes unquote=False to email.message.get_param() to avoid the redundant stripping.

def test_boundary_stripped_only_once(self):
eq = self.assertEqual
msg = email.message_from_string('''\
MIME-Version: 1.0
Copy link

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?

eq(len(msg.get_payload()), 2)

msg = email.message_from_string('''\
MIME-Version: 1.0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also this

@tanloong
Copy link
Contributor Author

tanloong commented Aug 9, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants