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:40:12 +0100

Hi Michael,

> > I think libcurl should detect and escape, so that the same rules apply
to
> > user names for libcurl's API independent of protocol.
> >
> > 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?
>
> If I'm reading section 9 of RFC3501 correctly, double quotes and
> backslashes should be escaped using backslashes, but it's more
> complicated than just that.

Cheers for that Michael... that gives me a good insight into things.

I've added the issue to my to do list and will have a go at fixing it as you
suggested.

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