cpython/Lib/email
Barry Warsaw 7cf9ce2440 Fixes for SF #1076485, which I'll apply to the CVS head too. The problem was
caused by a self._input.readline() call that wasn't checking for the
NeedsMoreData marker.

msg_43.txt contains a message that illustrates the problem, when
email.message_from_*() is called.  That interface uses the Parser API, which
splits reads into 8192 byte chunks.  It so happens that for the test message,
the 8192 chunk falls inside a message/delivery-status, which is where in the
FeedParser the readline() call was that didn't check for NeedsMoreData.

I also added an assert to unreadline() so it'll be more evident if an attempt
to push back NeedsMoreData ever happens again.

Bump the email package version number.
2004-12-05 03:45:42 +00:00
..
test Fixes for SF #1076485, which I'll apply to the CVS head too. The problem was 2004-12-05 03:45:42 +00:00
Charset.py __init__(): Coerce the input_charset to unicode (with ascii encoding) before 2004-10-09 21:08:30 +00:00
Encoders.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
Errors.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
FeedParser.py Fixes for SF #1076485, which I'll apply to the CVS head too. The problem was 2004-12-05 03:45:42 +00:00
Generator.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
Header.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
Iterators.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
MIMEAudio.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
MIMEBase.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
MIMEImage.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
MIMEMessage.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
MIMEMultipart.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
MIMENonMultipart.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
MIMEText.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
Message.py get_boundary(): Fix for SF bug #1060941. RFC 2046 says boundaries may begin 2004-11-06 00:04:52 +00:00
Parser.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
Utils.py Whitespace normalization. 2004-10-12 21:51:32 +00:00
__init__.py Fixes for SF #1076485, which I'll apply to the CVS head too. The problem was 2004-12-05 03:45:42 +00:00
_parseaddr.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
base64MIME.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
quopriMIME.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00