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/
This commit is contained in:
Vivia Nikolaidou 2014-10-06 21:25:30 +03:00 committed by Sebastian Dröge
parent dce92c75b1
commit 778b1814a8

View file

@ -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) {