[New-bugs-announce] [issue5525] Problem with email.MIME* library, using wrong new line
report at bugs.python.org
Fri Mar 20 04:11:51 CET 2009
New submission from Luca clementi <luca.clementi at gmail.com>:
I'm running Python 2.5.2 under Ubuntu 8.10.
In the file email/generator.py from the core library at line 228 in the
# delimiter transport-padding CRLF
print >> self._fp, '\n--' + boundary
but if this function is run under Unix it print only the LF and not the
CRLF as by required by the standard.
My guess is that this error is also in other part of the library.
SMTP (as HTTP) requires CRLF as new line, by standard, while I see that
at the beginning of the generator.py
NL = '\n'
Am I missing something?
components: Library (Lib)
title: Problem with email.MIME* library, using wrong new line
versions: Python 2.5
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce