cURL / Mailing Lists / curl-library / Single Mail


RE: IMAP and Usernames

From: Steve Holme <>
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


List admin:
Received on 2012-03-25