Skip to content

gh-159304: Fix AttributeError in email get_body() for nested malformed multipart - #159306

Merged
bitdancer merged 1 commit into
python:mainfrom
jul3x:malformed-email-159304
Oct 15, 2026
Merged

bitdancer merged 1 commit into
python:mainfrom
jul3x:malformed-email-159304

Conversation

@jul3x

@jul3x jul3x commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

MIMEPart._find_body() checked self.is_multipart() instead of part.is_multipart() when recursing.

@jul3x
jul3x requested a review from a team as a code owner October 13, 2026 11:07
@python-cla-bot

python-cla-bot Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

…lformed multipart

MIMEPart._find_body() checked self.is_multipart() instead of
part.is_multipart() when recursing.
@jul3x
jul3x force-pushed the malformed-email-159304 branch from d088e17 to a8973dc Compare October 13, 2026 11:12

@bitdancer bitdancer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@bitdancer
bitdancer merged commit fdec4df into python:main Oct 15, 2026
59 checks passed
@bitdancer bitdancer added awaiting merge needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 15, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @jul3x for the PR, and @bitdancer for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @jul3x for the PR, and @bitdancer for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 15, 2026

Copy link
Copy Markdown

GH-159491 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 15, 2026
@bedevere-app

bedevere-app Bot commented Oct 15, 2026

Copy link
Copy Markdown

GH-159492 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 15, 2026
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.

2 participants