Skip to content

Commit 4449584

Browse files
committed
Merge branch 'ak/curl-imap-send-explicit-scheme' into next
When we started cURL to talk to imap server when a new enough version of cURL library is available, we forgot to explicitly add imap(s):// before the destination. To some folks, that didn't work and the library tried to make HTTP(s) requests instead. * ak/curl-imap-send-explicit-scheme: imap-send: Tell cURL to use imap:// or imaps://
2 parents 6513755 + d2d07ab commit 4449584

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

imap-send.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,7 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
14101410
curl_easy_setopt(curl, CURLOPT_USERNAME, server.user);
14111411
curl_easy_setopt(curl, CURLOPT_PASSWORD, server.pass);
14121412

1413+
strbuf_addstr(&path, server.use_ssl ? "imaps://" : "imap://");
14131414
strbuf_addstr(&path, server.host);
14141415
if (!path.len || path.buf[path.len - 1] != '/')
14151416
strbuf_addch(&path, '/');

0 commit comments

Comments
 (0)