imap-send: return with error if curl failed
[gitweb.git] / imap-send.c
index b2d0b849bb20c88532dd2952a4a5ae94204ccad8..b5e332420a32013d50e5faa18498481f266add86 100644 (file)
@@ -1490,7 +1490,7 @@ static int curl_append_msgs_to_imap(struct imap_server_conf *server,
        curl_easy_cleanup(curl);
        curl_global_cleanup();
 
-       return 0;
+       return res != CURLE_OK;
 }
 #endif