From 778b1814a87c5290c3a4fc9c3b97597a69925d15 Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Mon, 6 Oct 2014 21:25:30 +0300 Subject: [PATCH] curlsmtpsink: Set CURLOPT_UPLOAD to 1 to not use VRFY and other unneeded commands Fixes the sink with SMTP servers that disable VRFY for spam protection. http://sourceforge.net/p/curl/bugs/1389/ --- ext/curl/gstcurlsmtpsink.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/curl/gstcurlsmtpsink.c b/ext/curl/gstcurlsmtpsink.c index 03f178bdb3..f8be5d06a2 100644 --- a/ext/curl/gstcurlsmtpsink.c +++ b/ext/curl/gstcurlsmtpsink.c @@ -725,6 +725,13 @@ gst_curl_smtp_sink_set_transfer_options_unlocked (GstCurlBaseSink * bcsink) return FALSE; } + res = curl_easy_setopt (bcsink->curl, CURLOPT_UPLOAD, 1L); + if (res != CURLE_OK) { + bcsink->error = g_strdup_printf ("failed to prepare for upload: %s", + curl_easy_strerror (res)); + return FALSE; + } + parent_class = GST_CURL_TLS_SINK_GET_CLASS (sink); if (sink->use_ssl) {