cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: IMAP and Usernames

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Sun, 25 Mar 2012 10:36:00 +0100

Hi Daniel,

> > Whilst in IMAP4 the equivalent needs to be:
> >
> > B LOGIN "Steve Holme" <password>
> >
> > When running curl or even my own application I can cope with this by
> > passing in a string that simply contains the quote marks.
> >
> > However, should libcurl detect this and escape the username itself or
> > is it outside its responsibility?
>
> I think libcurl should detect and escape, so that the same rules apply to
> user names for libcurl's API independent of protocol.

Okay... I will add this to my to do list ;-)

> But your example made me curious. Is there other letters besides space
> (ascii 32) that need quoting? What if you want to use the actuable
> quote letter (") in a user name?

Did you see the email from Michael? It should be pretty simple to turn the
username and password into a quoted string from - not sure about the literal
stuff at the moment though!

Kind Regards

Steve

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-25