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-14 09:40:49 +0200
commit9018e1b8d7fcf8d18f78e3fe1c39e52fed27aae0 (patch)
tree84fc2e7a185642dca41a9c47c6b0e4202a52f42d
parentff8b1cdc4fc47382d0a662cef02d24ed207f0943 (diff)
downloadgstreamer-plugins-bad-9018e1b8d7fcf8d18f78e3fe1c39e52fed27aae0.tar.gz
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 4409ceb3e..c28213b42 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) {