[Python-bugs-list] [ python-Bugs-478887 ] imaplib patch
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 06 Nov 2001 14:14:49 -0800
Bugs item #478887, was opened at 2001-11-06 14:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478887&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: imaplib patch
Initial Comment:
The comment in the patch says it all. I am using Linux
(various distros/versions) with Jython 2.1a3.
*** /usr/lib/python2.1/imaplib.py Sat Oct 20 10:48:35 2001
--- lib/modules/imaplib.py Tue Nov 6 16:59:15 2001
***************
*** 198,204 ****
"""Setup 'self.sock' and 'self.file'."""
self.sock = socket.socket(socket.AF_INET,
socket.SOCK_STREAM)
self.sock.connect((self.host, self.port))
! self.file = self.sock.makefile('r')
def recent(self):
--- 198,206 ----
"""Setup 'self.sock' and 'self.file'."""
self.sock = socket.socket(socket.AF_INET,
socket.SOCK_STREAM)
self.sock.connect((self.host, self.port))
! # use binary mode -- with jython (java) not
specifying binary mode
! # causes a CRLF->LF translation and screws up
the data later on
! self.file = self.sock.makefile('rb')
def recent(self):
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478887&group_id=5470