Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f3299989
Commit
f3299989
authored
Apr 18, 2011
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
Merge: #11492: rewrite header folding algorithm. Less code, more passing tests.
parents
d66f07a6
01581ee0
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
254 additions
and
200 deletions
+254
-200
Doc/library/email.header.rst
Doc/library/email.header.rst
+11
-3
Lib/email/header.py
Lib/email/header.py
+109
-180
Lib/test/test_email/test_email.py
Lib/test/test_email/test_email.py
+132
-17
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/email.header.rst
View file @
f3299989
...
...
@@ -109,9 +109,17 @@ Here is the :class:`Header` class description:
Encode a message header into an RFC-compliant format, possibly wrapping
long lines and encapsulating non-ASCII parts in base64 or quoted-printable
encodings. Optional *splitchars* is a string containing characters to
split long ASCII lines on, in rough support of :rfc:`2822`'s *highest
level syntactic breaks*. This doesn't affect :rfc:`2047` encoded lines.
encodings.
Optional *splitchars* is a string containing characters which should be
given extra weight by the splitting algorithm during normal header
wrapping. This is in very rough support of :RFC:`2822`\'s 'higher level
syntactic breaks': split points preceded by a splitchar are preferred
during line splitting, with the characters preferred in the order in
which they appear in the string. Space and tab may be included in the
string to indicate whether preference should be given to one over the
other as a split point when other split chars do not appear in the line
being split. Splitchars does not affect RFC 2047 encoded lines.
*maxlinelen*, if given, overrides the instance's value for the maximum
line length.
...
...
Lib/email/header.py
View file @
f3299989
This diff is collapsed.
Click to expand it.
Lib/test/test_email/test_email.py
View file @
f3299989
This diff is collapsed.
Click to expand it.
Misc/NEWS
View file @
f3299989
...
...
@@ -110,6 +110,8 @@ Core and Builtins
Library
-------
- Issue #11492: fix several issues with header folding in the email package.
- Issue #11852: Add missing imports and update tests.
- Issue #11467: Fix urlparse behavior when handling urls which contains scheme
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment