Non ascii characters now supported in IMAP connections.

see #386
This commit is contained in:
Antoine Nguyen
2013-05-10 09:44:50 +02:00
parent 1b40baebf5
commit f7a8ab43c3
+4
View File
@@ -245,6 +245,10 @@ class IMAPconnector(object):
:param passwd: password
"""
import socket
if type(user) is unicode:
user = user.encode("utf-8")
if type(passwd) is unicode:
passwd = passwd.encode("utf-8")
try:
secured = parameters.get_admin("IMAP_SECURED")
if secured == "yes":