mirror of
https://github.com/python/cpython
synced 2026-10-16 08:41:40 +03:00
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. |
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||
| _compat21.py | ||
| _compat22.py | ||
| _parseaddr.py | ||
| base64MIME.py | ||
| Charset.py | ||
| Encoders.py | ||
| Errors.py | ||
| Generator.py | ||
| Header.py | ||
| Iterators.py | ||
| Message.py | ||
| MIMEAudio.py | ||
| MIMEBase.py | ||
| MIMEImage.py | ||
| MIMEMessage.py | ||
| MIMEMultipart.py | ||
| MIMENonMultipart.py | ||
| MIMEText.py | ||
| Parser.py | ||
| quopriMIME.py | ||
| Utils.py | ||