]> granicus.if.org Git - python/commit
I've thought about it some more, and I believe it is proper for the
authorBarry Warsaw <barry@python.org>
Sun, 19 May 2002 23:51:50 +0000 (23:51 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 19 May 2002 23:51:50 +0000 (23:51 +0000)
commit7e21b6792babc785f96779d3881299ab643f7a1d
treeb9229713b8d3faa6b132764dc0bbe0c40704502f
parent812031b95555e607ccec74f31aabc7601a53ed8a
I've thought about it some more, and I believe it is proper for the
email package's Parser to handle the three common line endings.
Certain protocols such as IMAP define CRLF line endings and it doesn't
make sense for the client app to have to normalize the line endings
before handing it message off to the Parser.

_parsebody(): Be more flexible in the matching of line endings for
finding the MIME separators.  Accept any of \r, \n and \r\n.  Note
that we do /not/ change the line endings in the payloads, we just
accept any of those three around MIME boundaries.
Lib/email/Parser.py