Re: imap-send with gmail: curl_easy_perform() failed: URL using bad/illegal format or missing URL
- Date: Wed, 29 Nov 2017 18:04:45 -0800
- From: Jonathan Nieder <jrnieder@xxxxxxxxx>
- Subject: Re: imap-send with gmail: curl_easy_perform() failed: URL using bad/illegal format or missing URL
Doron Behar wrote:
> I'm trying to send a patch with the command `git imap-send`, I used the
> examples in the manual page as the main reference for my configuration:
> folder = "[Gmail]/Drafts"
> host = imaps://imap.gmail.com
> user = doron.behar@xxxxxxxxx
> port = 993
> sslverify = false
> This is my `cat patch.out | git imap-send` output:
> Password for 'imaps://doron.behar@firstname.lastname@example.org':
> sending 3 messages
> curl_easy_perform() failed: URL using bad/illegal format or missing URL
Thanks for reporting this. I suspect this is related to
v2.15.0-rc0~63^2 (imap-send: use curl by default when possible,
2017-09-14) --- e.g. perhaps our custom IMAP code was doing some
escaping on the username that libcurl does not do.
"man git imap-send" says this is a recommended configuration, so I
don't think it's a configuration error.
What platform are you on? What version of libcurl are you using?
In libcurl::lib/easy.c I am also seeing
return CURLE_URL_MALFORMAT; /* TODO: return a proper error! */
which looks suspicious.
Nicolas, am I on the right track?
> The URI doesn't seem OK to me, I tried using `imap.user = doron.behar` and the
> URI was `imaps://doron.behar@xxxxxxxxxxxxxx` but that ended up with the same
> error as in the previous case.
> I would love to get some help here, a Google Search didn't help as well.