[issue34577] imaplib Cyrillic password

2018-09-05 Thread Nikita Velykanov
Nikita Velykanov added the comment: It works. Thanks a lot! -- stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue34577] imaplib Cyrillic password

2018-09-04 Thread Christian Heimes
Christian Heimes added the comment: This is not a bug in Python's imaplib but a limitation of the LDAP protocol. It's not possible to enable UTF-8 mode before the session is authenticatd. LOGIN supports only ASCII user name and password. You have to use SASL PLAIN handshake with AUTHENTICATE

[issue34577] imaplib Cyrillic password

2018-09-04 Thread Nikita Velykanov
Nikita Velykanov added the comment: Thank you for fast reply. Here's full traceback for first case: Traceback (most recent call last): File "some_my_file.py", line 10, in some_function self.mail.login(login, password) File "/usr/lib64/python2.7/imaplib.py", line 518, in login typ,

[issue34577] imaplib Cyrillic password

2018-09-04 Thread Christian Heimes
Christian Heimes added the comment: You have cut off the exception message. Please provide a full traceback including the exception name and message. Password algorithms typically handle only bytes. The encoding depends on your target system and is usually utf-8. -- nosy: +christian

[issue34577] imaplib Cyrillic password

2018-09-04 Thread Nikita Velykanov
New submission from Nikita Velykanov : Let's consider there is an email box with password which contains Cyrillic symbols. When loging in imaplib.IMAP4_SSL(host, port).login(login, password) password field is passed as "кириллица" (type is str, not unicode). Then, I get this traceback: Fi