Browse files

imap-send: use curl by default when possible

Set curl as the runtime default when it is available.
When linked against older curl versions (< 7_34_0) or without curl,
use the legacy imap implementation.

The goal is to validate feature parity between the legacy and
the curl implementation, deprecate the legacy implementation
later on and in the long term, hopefully drop it altogether.

Signed-off-by: Nicolas Morey-Chaisemartin <>
Signed-off-by: Junio C Hamano <>
  • Loading branch information...
nmorey authored and gitster committed Sep 14, 2017
1 parent 19079b3 commit dbba42bb32f2e896a5413d401c61a0022652fe2b
Showing with 3 additions and 3 deletions.
  1. +3 −3 imap-send.c
@@ -35,11 +35,11 @@ typedef void *SSL;
#include "http.h"
#if defined(USE_CURL_FOR_IMAP_SEND) && defined(NO_OPENSSL)
/* only available option */
/* Always default to curl if it's available. */
/* strictly opt in */
/* We don't have curl, so continue to use the historical implementation */

0 comments on commit dbba42b

Please sign in to comment.