l10n: fr.po v2.11.0_rnd1
[gitweb.git] / imap-send.c
index 9514ddc56524cbcd1add757a04f4b42fb2489662..5c7e27a89459a9a63018cc469262c82891c6f7b7 100644 (file)
@@ -1408,6 +1408,7 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
        curl_easy_setopt(curl, CURLOPT_USERNAME, server.user);
        curl_easy_setopt(curl, CURLOPT_PASSWORD, server.pass);
 
+       strbuf_addstr(&path, server.use_ssl ? "imaps://" : "imap://");
        strbuf_addstr(&path, server.host);
        if (!path.len || path.buf[path.len - 1] != '/')
                strbuf_addch(&path, '/');