Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.2k
Star
74.3k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Lib
email
message.py
on
main
User selector
All users
All time
Commit history
Commits on Nov 4, 2025
gh-139434: Update selected RFC 2822 references to RFC 5322 (#139435)
Show description for ce1bb85
filiplajszczak
authored
ce1bb85
View commit details
Copy full SHA for ce1bb85
View code at this point
Browse repository at this point
Commits on Oct 31, 2025
gh-136063: fix quadratic-complexity parsing in `email.message._parseparam` (GH-136072)
picnixz
authored
680a5d0
View commit details
Copy full SHA for 680a5d0
View code at this point
Browse repository at this point
Commits on Jul 12, 2025
gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload` (#136071)
Show description for 25335d2
skv0zsneg
and
picnixz
authored
25335d2
View commit details
Copy full SHA for 25335d2
View code at this point
Browse repository at this point
Commits on Jun 10, 2025
Docs: fix docstring of `email.message.Message.add_header` (#134355)
shadchin
authored
c23eec2
View commit details
Copy full SHA for c23eec2
View code at this point
Browse repository at this point
Commits on Jan 6, 2025
gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has extra text (#127547)
Show description for a62ba52
RanKKI
and
picnixz
authored
a62ba52
View commit details
Copy full SHA for a62ba52
View code at this point
Browse repository at this point
Commits on Nov 12, 2024
gh-126133: Only use start year in PSF copyright, remove end years (#126236)
hugovk
authored
91f4908
View commit details
Copy full SHA for 91f4908
View code at this point
Browse repository at this point
Commits on May 22, 2024
Remove almost all unpaired backticks in docstrings (#119231)
Show description for ef17252
geofft
authored
ef17252
View commit details
Copy full SHA for ef17252
View code at this point
Browse repository at this point
Commits on Apr 17, 2024
gh-80361: Fix TypeError in email.Message.get_payload() (GH-117994)
Show description for deaecb8
serhiy-storchaka
authored
deaecb8
View commit details
Copy full SHA for deaecb8
View code at this point
Browse repository at this point
Commits on Mar 5, 2024
gh-76511: Fix email.Message.as_string() for non-ASCII message with ASCII charset (GH-116125)
serhiy-storchaka
authored
f97f25e
View commit details
Copy full SHA for f97f25e
View code at this point
Browse repository at this point
Commits on Dec 11, 2023
gh-94606: Fix error when message with Unicode surrogate not surrogateescaped string (GH-94641)
Show description for 27a5fd8
sidney
and
serhiy-storchaka
authored
27a5fd8
View commit details
Copy full SHA for 27a5fd8
View code at this point
Browse repository at this point
Commits on Apr 24, 2023
gh-102498 Clean up unused variables and imports in the email module (#102482)
Show description for 04ea048
JosephSBoyle
and
warsaw
authored
04ea048
View commit details
Copy full SHA for 04ea048
View code at this point
Browse repository at this point
Commits on Jan 7, 2023
gh-100792: Make `email.message.Message.__contains__` twice as fast (#100793)
sobolevn
authored
6746135
View commit details
Copy full SHA for 6746135
View code at this point
Browse repository at this point
Commits on Apr 28, 2022
gh-91217: deprecate uu (GH-92009)
Show description for 407c3af
brettcannon
authored
407c3af
View commit details
Copy full SHA for 407c3af
View code at this point
Browse repository at this point
Commits on Jul 30, 2021
bpo-42892: fix email multipart attribute error (GH-26903)
akulakov
authored
e3f877c
View commit details
Copy full SHA for e3f877c
View code at this point
Browse repository at this point
Commits on Jun 21, 2021
bpo-44395: Fix MIMEPart.as_string to pass unixfrom properly (GH-26685)
corona10
authored
30f7a77
View commit details
Copy full SHA for 30f7a77
View code at this point
Browse repository at this point
Commits on Oct 2, 2020
Typo fix - "mesasge" should be "message" (GH-22498)
Show description for 9cd01ec
hansrajdas
authored
9cd01ec
View commit details
Copy full SHA for 9cd01ec
View code at this point
Browse repository at this point
Commits on Jun 25, 2019
bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119)
Show description for 0225701
maxking
authored and
warsaw
committed
0225701
View commit details
Copy full SHA for 0225701
View code at this point
Browse repository at this point
Commits on Sep 10, 2016
#20476: Deal with the message_factory circular import differently.
Show description for b067c8f
bitdancer
committed
b067c8f
View commit details
Copy full SHA for b067c8f
View code at this point
Browse repository at this point
Commits on Sep 9, 2016
#20476: add a message_factory policy attribute to email.
bitdancer
committed
06ed218
View commit details
Copy full SHA for 06ed218
View code at this point
Browse repository at this point
Commits on Sep 8, 2016
#24277: The new email API is no longer provisional.
Show description for 29d1bc0
bitdancer
committed
29d1bc0
View commit details
Copy full SHA for 29d1bc0
View code at this point
Browse repository at this point
Commits on Sep 7, 2016
Merge: 27988: Make sure iter_attachments does not mutate the payload list.
bitdancer
committed
91afe7e
View commit details
Copy full SHA for 91afe7e
View code at this point
Browse repository at this point
27988: Make sure iter_attachments does not mutate the payload list.
bitdancer
committed
c2e2473
View commit details
Copy full SHA for c2e2473
View code at this point
Browse repository at this point
Commits on Aug 30, 2016
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
rhettinger
committed
15f44ab
View commit details
Copy full SHA for 15f44ab
View code at this point
Browse repository at this point
Commits on May 29, 2016
Issue #27125: Fix various errors like “will [be] inherited”
vadmium
committed
8d56c02
View commit details
Copy full SHA for 8d56c02
View code at this point
Browse repository at this point
Commits on May 16, 2015
#21083: add get_content_disposition method to email.message.
Show description for b744f3a
bitdancer
committed
b744f3a
View commit details
Copy full SHA for b744f3a
View code at this point
Browse repository at this point
Commits on Jan 18, 2015
Issue #23181: More "codepoint" -> "code point".
serhiy-storchaka
committed
82e07b9
View commit details
Copy full SHA for 82e07b9
View code at this point
Browse repository at this point
Issue #23181: More "codepoint" -> "code point".
serhiy-storchaka
committed
d3faf43
View commit details
Copy full SHA for d3faf43
View code at this point
Browse repository at this point
Commits on Sep 20, 2014
Merge: #21091: make is_attachment a method.
bitdancer
committed
7c4093c
View commit details
Copy full SHA for 7c4093c
View code at this point
Browse repository at this point
#21091: make is_attachment a method.
Show description for 8a97896
bitdancer
committed
8a97896
View commit details
Copy full SHA for 8a97896
View code at this point
Browse repository at this point
#21079: is_attachment now looks only at the value, ignoring parameters.
bitdancer
committed
97dfad7
View commit details
Copy full SHA for 97dfad7
View code at this point
Browse repository at this point
Commits on Mar 23, 2014
#20976: remove unneeded quopri import in email.utils.
bitdancer
committed
95a8dfb
View commit details
Copy full SHA for 95a8dfb
View code at this point
Browse repository at this point
Commits on Mar 6, 2014
#11558: Better message if attach called on non-multipart.
Show description for 5dda124
bitdancer
committed
5dda124
View commit details
Copy full SHA for 5dda124
View code at this point
Browse repository at this point
Commits on Feb 7, 2014
Merge: #19063: the unicode-in-set_payload problem isn't getting fixed in 3.4.
bitdancer
committed
feb6852
View commit details
Copy full SHA for feb6852
View code at this point
Browse repository at this point
#19063: the unicode-in-set_payload problem isn't getting fixed in 3.4.
bitdancer
committed
fcc0072
View commit details
Copy full SHA for fcc0072
View code at this point
Browse repository at this point
#20531: Apply the 3.3 version of the #19063 fix.
Show description for 15a693a
bitdancer
committed
15a693a
View commit details
Copy full SHA for 15a693a
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.