[dev] quotes around imap LOGIN command?
Michael M Slusarz
slusarz at mail.curecanti.org
Wed Oct 19 12:29:50 PDT 2005
Quoting Matt Selsky <selsky at columbia.edu>:
>> What if your username and/or password has a space in it? imap will
>> reject the login string because it will appear to have an incorrect #
>> of parameters - I believe this is why we need the quotes.
>
> What if we use the other form of the LOGIN command? I think this is
> what c-client does.
>
> Instead of:
>
> A01 LOGIN "user" "pass"
>
> we can use:
>
> A01 LOGIN user {4}
> + Ready for argument
> pass
>
> We don't need to do quoting. This also has the advantage of reducing
> the number of connections that up-imapproxy needs to keep around. It
> thinks that '"user"' and 'user' are different usernames and need to use
> separate server connections.
ok, good point, i wasn't thinking about this. go ahead and commit the
code (remember to commit the code to MIMP_IMAPClient also).
michael
_______________________________________
Michael Slusarz [slusarz at curecanti.org]
More information about the dev
mailing list