Thread (5 messages) read the whole thread 5 messages, 3 authors, 2017-08-07

Re: [PATCH 4/4] imap-send: use curl by default

From: Martin Ågren <hidden>
Date: 2017-08-07 16:37:30

Possibly related (same subject, not in this thread)

On 7 August 2017 at 16:04, Nicolas Morey-Chaisemartin
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Nicolas Morey-Chaisemartin <redacted>
---
 imap-send.c | 6 ------
 1 file changed, 6 deletions(-)
diff --git a/imap-send.c b/imap-send.c
index 90b8683ed..4ebc16437 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -35,13 +35,7 @@ typedef void *SSL;
 #include "http.h"
 #endif

-#if defined(USE_CURL_FOR_IMAP_SEND) && defined(NO_OPENSSL)
-/* only available option */
 #define USE_CURL_DEFAULT 1
-#else
-/* strictly opt in */
-#define USE_CURL_DEFAULT 0
-#endif

 static int verbosity;
 static int use_curl = USE_CURL_DEFAULT;
So this is now basically "static int use_curl = 1;".

Do we need a compile-time escape-hatch in case someone really needs
to avoid curl, e.g., because they have a too old version? I suppose
there is a conceptual difference between the "default", i.e., the value
of USE_CURL_DEFAULT that is assigned to "use_curl", and the "default
default", i.e., the value that is normally assigned to USE_CURL_DEFAULT.

Martin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help