Skip to content

gh-157254: Preserve email content on failure and reject unsupported bytes CTEs - #157263

Open
lpyu001 wants to merge 1 commit into
python:mainfrom
lpyu001:fix-email-bug-157254
Open

gh-157254: Preserve email content on failure and reject unsupported bytes CTEs#157263
lpyu001 wants to merge 1 commit into
python:mainfrom
lpyu001:fix-email-bug-157254

Conversation

@lpyu001

@lpyu001 lpyu001 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Failed content setup, such as an unknown charset, can discard an existing message's content or leave its parent converted to multipart. Restore the original headers and payload when a content handler raises, and prepare new parts before converting their parent while preserving conversion error precedence.

Reject unsupported bytes content-transfer encodings with ValueError instead of emitting an unrecognized Content-Transfer-Encoding header.

…rted bytes CTEs

Failed content setup, such as an unknown charset, can discard an existing message's content or leave its parent converted to multipart. Restore the original headers and payload when a content handler raises, and prepare new parts before converting their parent while preserving conversion error precedence.

Reject unsupported bytes content-transfer encodings with ValueError instead of emitting an unrecognized Content-Transfer-Encoding header.
@lpyu001
lpyu001 requested a review from a team as a code owner September 10, 2026 10:01
@lpyu001 lpyu001 changed the title gh-157254: Preserve email content on failure and reject unsupported b… gh-157254: Preserve email content on failure and reject unsupported bytes CTEs Sep 10, 2026
@lpyu001
lpyu001 marked this pull request as draft September 10, 2026 10:03
@lpyu001
lpyu001 marked this pull request as ready for review September 10, 2026 14:39
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.

1 participant