[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.
Milan Oberkirch
report at bugs.python.org
Tue Jul 1 02:50:15 CEST 2014
New submission from Milan Oberkirch:
I made a patch implementing the following changes to the IMAP4 class:
- add a method 'enable_UTF8_accept()' sending "ENABLE UTF8=ACCEPT" to the server and setting internal encoding to UTF-8
- use the UTF8 extencion in the 'append()' method if the internal encoding is UTF-8
- add a keyword argument 'enable_UTF8=False' to the init method to trigger 'enable_UTF8_accept()' as soon as the authentication is done
- always use UTF-8 for encoding credentials in authentication (before encoding it to base64)
Does this look like a good idea to you? (I'll make a patch including docs when we agree on the API.)
----------
keywords: +patch
Added file: http://bugs.python.org/file35808/imaplib_utf8_no_doc.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21800>
_______________________________________
More information about the Python-bugs-list
mailing list