REPOST: Re: imaplib : password with accented chars in login commands

Donn Cave donn at u.washington.edu
Fri Dec 28 14:31:08 EST 2001


Quoth Samuel Krempp <krempp at trucs.en.trop.crans.ens-cachan.fr>:
| 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 ?

Some individual IMAP4 commands support an optional CHARSET modifier,
but in general the character set is assumed to be ASCII, which doesn't
include that character.  It's a feature of the protocol.  That's how
it looks to me, anyway.

	Donn Cave, donn at u.washington.edu

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool0-milwwi.newsops.execpc.com!newsfeeds.sol.net!newspump.sol.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!enews.sgi.com!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Donn Cave <donn at u.washington.edu>
Newsgroups: comp.lang.python
Subject: cmsg cancel <a0ih9s$2r68$1 at nntp6.u.washington.edu>
Control: cancel <a0ih9s$2r68$1 at nntp6.u.washington.edu>
Date: Mon, 31 Dec 2001 03:19:49 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.a0ih9s$2r68$1 at nntp6.u.washington.edu>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009775108 27193 211.57.49.2 (31 Dec 2001 05:05:08 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:05:08 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list