mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
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:
parent
dce92c75b1
commit
778b1814a8
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue