Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
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 }}
pythoncapi
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
email
generator.py
on
pythoncapi
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 11, 2016
Merge: #19003: Only replace \r and/or \n line endings in email.generator.
bitdancer
committed
29097d5
View commit details
Copy full SHA for 29097d5
View code at this point
Browse repository at this point
Commits on Sep 9, 2016
Merge: #27630: Be consistent in how _XXX/_encoded_XXX vars are initialized.
bitdancer
committed
f03bcfd
View commit details
Copy full SHA for f03bcfd
View code at this point
Browse repository at this point
#27630: Be consistent in how _XXX/_encoded_XXX vars are initialized.
bitdancer
committed
eaab1ca
View commit details
Copy full SHA for eaab1ca
View code at this point
Browse repository at this point
Commits on Sep 8, 2016
Add policy keyword to email.generator.DecodedGenerator.
bitdancer
committed
301edfa
View commit details
Copy full SHA for 301edfa
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 17, 2015
#20098: add mangle_from_ policy option.
Show description for fdb23c2
bitdancer
committed
fdb23c2
View commit details
Copy full SHA for fdb23c2
View code at this point
Browse repository at this point
Commits on May 7, 2014
#21300: Clean up the docs for the email "policy" arguments.
bitdancer
committed
e252446
View commit details
Copy full SHA for e252446
View code at this point
Browse repository at this point
Commits on Mar 20, 2014
Issue #20976: pyflakes: Remove unused imports
vstinner
committed
7fa767e
View commit details
Copy full SHA for 7fa767e
View code at this point
Browse repository at this point
Commits on Feb 8, 2014
#14983: always add a line end after a MIME boundary marker.
Show description for e9c3147
bitdancer
committed
e9c3147
View commit details
Copy full SHA for e9c3147
View code at this point
Browse repository at this point
#19772: Do not mutate message when downcoding to 7bit.
Show description for 905c8c3
bitdancer
committed
905c8c3
View commit details
Copy full SHA for 905c8c3
View code at this point
Browse repository at this point
Commits on Aug 10, 2013
Fix a couple of typos.
ezio-melotti
committed
2af76da
View commit details
Copy full SHA for 2af76da
View code at this point
Browse repository at this point
Commits on Mar 7, 2013
Merge: PEP8 fixup on previous patch, remove unused imports in test_email.
bitdancer
committed
965794e
View commit details
Copy full SHA for 965794e
View code at this point
Browse repository at this point
PEP8 fixup on previous patch, remove unused import in test_email.
bitdancer
committed
b9534f4
View commit details
Copy full SHA for b9534f4
View code at this point
Browse repository at this point
Merge: #14645: Generator now emits correct linesep for all parts.
Show description for addb0be
bitdancer
committed
addb0be
View commit details
Copy full SHA for addb0be
View code at this point
Browse repository at this point
#14645: Generator now emits correct linesep for all parts.
Show description for e67c6c5
bitdancer
committed
e67c6c5
View commit details
Copy full SHA for e67c6c5
View code at this point
Browse repository at this point
Commits on Feb 9, 2013
Merge: #16564: Fix regression in use of encoders.encode_noop with binary data.
bitdancer
committed
6cb1d67
View commit details
Copy full SHA for 6cb1d67
View code at this point
Browse repository at this point
#16564: Fix regression in use of encoders.encode_noop with binary data.
bitdancer
committed
ceaa8b1
View commit details
Copy full SHA for ceaa8b1
View code at this point
Browse repository at this point
Commits on Aug 24, 2012
Merge #15249: Mangle From lines correctly when body contains invalid bytes.
Show description for ad2a7d5
bitdancer
committed
ad2a7d5
View commit details
Copy full SHA for ad2a7d5
View code at this point
Browse repository at this point
#15249: Mangle From lines correctly when body contains invalid bytes.
Show description for 638d40b
bitdancer
committed
638d40b
View commit details
Copy full SHA for 638d40b
View code at this point
Browse repository at this point
Commits on Jul 23, 2012
Merge #15232: correctly mangle From lines in MIME preamble and epilogue
bitdancer
committed
970bef2
View commit details
Copy full SHA for 970bef2
View code at this point
Browse repository at this point
#15232: correctly mangle From lines in MIME preamble and epilogue
bitdancer
committed
6a31bc6
View commit details
Copy full SHA for 6a31bc6
View code at this point
Browse repository at this point
Commits on May 25, 2012
#12586: add provisional email policy with new header parsing and folding.
Show description for 0b6f6c8
bitdancer
committed
0b6f6c8
View commit details
Copy full SHA for 0b6f6c8
View code at this point
Browse repository at this point
#14731: refactor email policy framework.
Show description for c27e522
bitdancer
committed
c27e522
View commit details
Copy full SHA for c27e522
View code at this point
Browse repository at this point
Commits on Mar 17, 2012
Merge #11686: add missing entries to email __all__ lists.
Show description for 80e22b5
bitdancer
committed
80e22b5
View commit details
Copy full SHA for 80e22b5
View code at this point
Browse repository at this point
#11686: add missing entries to email __all__ lists.
Show description for 1b6c724
bitdancer
committed
1b6c724
View commit details
Copy full SHA for 1b6c724
View code at this point
Browse repository at this point
Commits on Mar 14, 2012
#14062: fix BytesParser handling of Header objects
Show description for 8d8f110
bitdancer
committed
8d8f110
View commit details
Copy full SHA for 8d8f110
View code at this point
Browse repository at this point
#14062: fix BytesParser handling of linesep for Header objects
Show description for 9fd170e
bitdancer
committed
9fd170e
View commit details
Copy full SHA for 9fd170e
View code at this point
Browse repository at this point
Commits on Apr 18, 2011
#11731: simplify/enhance parser/generator API by introducing policy objects.
Show description for 3edd22a
bitdancer
committed
3edd22a
View commit details
Copy full SHA for 3edd22a
View code at this point
Browse repository at this point
Commits on Apr 13, 2011
#11684: Complete parser bytes interface by adding BytesHeaderParser
Show description for b35c850
bitdancer
committed
b35c850
View commit details
Copy full SHA for b35c850
View code at this point
Browse repository at this point
Commits on Mar 14, 2011
Harmonize linesep docstrings, and fix the quoting of \r\n
bitdancer
committed
cd37dfc
View commit details
Copy full SHA for cd37dfc
View code at this point
Browse repository at this point
Commits on Jan 26, 2011
#11019: Make BytesGenerator handle Message with None body.
Show description for 7372a07
bitdancer
committed
7372a07
View commit details
Copy full SHA for 7372a07
View code at this point
Browse repository at this point
Revert r88197. I'll refix correctly once there is a test.
bitdancer
committed
bdd2d93
View commit details
Copy full SHA for bdd2d93
View code at this point
Browse repository at this point
Fix BytesGenerator._handle_text() if the message has no payload (None)
Victor Stinner
committed
3a7ee3a
View commit details
Copy full SHA for 3a7ee3a
View code at this point
Browse repository at this point
Commits on Dec 21, 2010
Fix the change made for issue 1243654.
Show description for 73a559d
bitdancer
committed
73a559d
View commit details
Copy full SHA for 73a559d
View code at this point
Browse repository at this point
Commits on Dec 12, 2010
#243654: only create a new MIME boundary if we don't already have one.
Show description for 5260a9b
bitdancer
committed
5260a9b
View commit details
Copy full SHA for 5260a9b
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.