imaplib : password with accented chars in login commands

Samuel Krempp krempp at trucs.en.trop.crans.ens-cachan.fr
Fri Dec 28 13:56:27 EST 2001


when I try using "é"  as a password in the login command, the imaplib 
command raises exceptions.

import imaplib
M=imaplib.IMAP4('imap.free.fr')
M.login("toto", "blaébla")

imaplib.error: LOGIN command error: BAD ['Missing required argument to 
LOGIN']

It's quite a problem, since I wished I could use any french character 
in my passwords,
But I am not sure whether this is a bug in imaplib or a 'feature' of 
the IMAP protocol, because the documentation
http://www.python.org/doc/current/lib/imap4-objects.html
says something I don't fully understand,
about always quoting string used as password in the login command.

Is this a bug, or am I doing something wrong ?

Regards,
-- 
Sam



More information about the Python-list mailing list