cpython/Lib/email
Barry Warsaw e899e51c06 Merge of the folding-reimpl-branch. Specific changes,
_split(): New implementation of ASCII line splitting which should do a
better job and not be subject to the various weird artifacts (bugs)
reported.  This should also do a better job of higher-level syntactic
splits by trying first to split on semis, then commas, then
whitespace.

Use a Timbot-ly binary search for optimal non-ASCII split points for
better packing of header lines.  This also lets us remove one
recursion call.  Don't pass in firstline, but instead pass in the
actual line length we're shooting for.  Also pass in the list of split
characters.

encode(): Pass in the list of split characters so applications can
have some control over what "higher level syntactic breaks" are.

Also,

decode_header(): Transform binascii.Errors which can occur when
decoding a base64 RFC 2047 header with bogus data, into an
email.Errors.HeaderParseError.  Closes SF bug #696712.
2003-03-06 05:39:46 +00:00
..
test Jack complained that on test_crlf_separation() was failing on MacOS9 2003-01-02 22:48:36 +00:00
__init__.py Actually, make this 2.5a1 since it will include API changes that may 2002-12-30 19:08:38 +00:00
_compat21.py Whitespace normalization. 2002-12-24 18:31:27 +00:00
_compat22.py _isstring(): Factor out "stringiness" test, e.g. for StringType or 2002-09-10 16:09:06 +00:00
_parseaddr.py parsedate_tz(): Fix SF bug #552345, optional FWS between the comma and 2002-12-30 17:21:36 +00:00
base64MIME.py Merge of the folding-reimpl-branch. Specific changes, 2003-03-06 05:25:00 +00:00
Charset.py Merge of the folding-reimpl-branch. Specific changes, 2003-03-06 05:16:29 +00:00
Encoders.py Docstring consistency with the updated .tex files. 2002-10-01 00:05:24 +00:00
Errors.py Slightly better docstring 2002-06-01 05:45:37 +00:00
Generator.py Merge of the folding-reimpl-branch. Specific changes, 2003-03-06 05:22:02 +00:00
Header.py Merge of the folding-reimpl-branch. Specific changes, 2003-03-06 05:39:46 +00:00
Iterators.py _structure(): Swap fp and level arguments. 2002-10-01 00:51:47 +00:00
Message.py get_content_charset(): RFC 2046 $4.1.2 says charsets are not case 2002-10-10 15:13:26 +00:00
MIMEAudio.py Docstring consistency with the updated .tex files. 2002-09-30 21:29:10 +00:00
MIMEBase.py Use absolute import paths for intrapackage imports. 2002-06-02 19:05:08 +00:00
MIMEImage.py Docstring consistency with the updated .tex files. 2002-09-30 22:15:00 +00:00
MIMEMessage.py __init__(): Be sure to set the default type to message/rfc822. 2002-07-09 02:40:35 +00:00
MIMEMultipart.py Docstring consistency with the updated .tex files. 2002-09-30 21:24:00 +00:00
MIMENonMultipart.py Add a pychecker suppression. 2002-09-28 20:25:15 +00:00
MIMEText.py Docstring consistency with the updated .tex files. 2002-10-01 00:52:27 +00:00
Parser.py Merge of the folding-reimpl-branch. Specific changes, 2003-03-06 05:25:35 +00:00
quopriMIME.py Merge of the folding-reimpl-branch. Specific changes, 2003-03-06 05:14:20 +00:00
Utils.py Jason Mastaler's patch to break the dependence on rfc822.py for the 2002-11-05 19:54:52 +00:00