cpython/Lib/email
Barry Warsaw da2525ed2a parse(), _parseheaders(), _parsebody(): A fix for SF bug #633527,
where in lax parsing, the first non-header line after a header block
(e.g. the first line not containing a colon, and not a continuation),
can be treated as the first body line, even without the RFC mandated
blank line separator.

rfc822 had this behavior, and I vaguely remember problems with this,
but can't remember details.  In any event, all the tests still pass,
so I guess we'll find out. ;/

This patch works by returning the non-header, non-continuation line
from _parseheader() and using that as the first header line prepended
to fp.read() if given.  It's usually None.

We use this approach instead of trying to seek/tell the file-like
object.
2002-11-05 21:44:06 +00:00
..
test test_no_separating_blank_line(): A test for SF bug #633527, no 2002-11-05 21:36:17 +00:00
Charset.py body_encode(): Fixed typo reported by Chris Lawrence, closing SF bug 2002-10-21 05:29:53 +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 _split_header(): If we have a header which is a byte string containing 2002-10-14 15:09:30 +00:00
Header.py append(): Fixing the test for convertability after consultation with 2002-10-14 16:52:41 +00:00
Iterators.py _structure(): Swap fp and level arguments. 2002-10-01 00:51:47 +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
Message.py get_content_charset(): RFC 2046 $4.1.2 says charsets are not case 2002-10-10 15:13:26 +00:00
Parser.py parse(), _parseheaders(), _parsebody(): A fix for SF bug #633527, 2002-11-05 21:44:06 +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
__init__.py Bump __version__ (yes, to 2.5 "minus") 2002-11-05 19:56:47 +00:00
_compat21.py _isstring(): Factor out "stringiness" test, e.g. for StringType or 2002-09-10 16:09:06 +00:00
_compat22.py _isstring(): Factor out "stringiness" test, e.g. for StringType or 2002-09-10 16:09:06 +00:00
_parseaddr.py Jason Mastaler's patch to break the dependence on rfc822.py for the 2002-11-05 19:54:52 +00:00
base64MIME.py Use True/False everywhere, and other code cleanups. 2002-09-28 21:02:51 +00:00
quopriMIME.py Use True/False everywhere, and other code cleanups. 2002-09-28 21:02:51 +00:00