STINNER Victor <[EMAIL PROTECTED]> added the comment:
Here is a patch for imaplib:
- add encoding attribute to IMAP4 class (as ftplib and see also issue
3727 for my poplib patch)
- use makefile('r', encoding=self.encoding) instead of a binary file
(mode='rb')
- remove duplicate code in IMAP4_SSL
I choosed ISO-8859-1 as the default charset. I tested the library on
my local IMAP4 server using IMAP4 and IMAP4_SSL classes. But the
library needs more unit tests as done for poplib.
----------
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file11786/imaplib_unicode.patch
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1210>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com