summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivia Nikolaidou <n.vivia@gmail.com>2014-10-06 21:25:30 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-10-06 21:28:45 +0300
commit778b1814a87c5290c3a4fc9c3b97597a69925d15 (patch)
treee65b82443e155f85dca18fd5171df98c0db37b05
parentdce92c75b1062427605d25d1bc3ff6bb8818d7c4 (diff)
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/
-rw-r--r--ext/curl/gstcurlsmtpsink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/curl/gstcurlsmtpsink.c b/ext/curl/gstcurlsmtpsink.c
index 03f178bdb..f8be5d06a 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) {