Ron DuPlain added the comment:
For what it's worth,
I ran these tests on Ubuntu 8.10 with Python trunk (2.7) r70765 (svn).
All tests passed. Output is attached (cleaned out ref counts).
--rduplain
--
nosy: +rduplain
Added file: http://bugs.python.org/file13503/trunk.r70765.
Ron DuPlain added the comment:
It looks like the IMAP4.append method is responsible for the CRLF
substitution (trunk/Lib/imaplib.py).
# defined near top of module:
MapCRLF = re.compile(r'\r\n|\r|\n')
# in append method:
self.literal = MapCRLF.sub(CRLF, message)
I'll work o
Ron DuPlain added the comment:
Module imaplib has pretty sparse test code. There is only 1 test case,
for imaplib.Time2Internaldate.
trunk/Lib/test/test_imaplib.py
The attached patch tests for LF, CR preservation with regard to the
IMAP4.append method, but more testing is necessary to make