diff options
author | Pavel Volgarev <pvolgarev@google.com> | 2020-01-14 17:22:38 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-01-21 10:40:19 +0100 |
commit | 4a4609bf3c812afc65f700b4b7e673cc76ade1bf (patch) | |
tree | ad7428b01b7bdd0735670f2cdbe6af46a11f97ba /src/tool_operate.c | |
parent | 23a17e039d0b1f0491d420ce2fd06e23cb3cf4c6 (diff) | |
download | curl-4a4609bf3c812afc65f700b4b7e673cc76ade1bf.tar.gz |
smtp: Allow RCPT TO command to fail for some recipients
Introduces CURLOPT_MAIL_RCPT_ALLLOWFAILS.
Verified with the new tests 3002-3007
Closes #4816
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 2e6563a20..2855f0f8f 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1835,6 +1835,10 @@ static CURLcode single_transfer(struct GlobalConfig *global, if(config->mail_rcpt) my_setopt_slist(curl, CURLOPT_MAIL_RCPT, config->mail_rcpt); + /* curl 7.69.x */ + my_setopt(curl, CURLOPT_MAIL_RCPT_ALLLOWFAILS, + config->mail_rcpt_allowfails ? 1L : 0L); + /* curl 7.20.x */ if(config->ftp_pret) my_setopt(curl, CURLOPT_FTP_USE_PRET, 1L); |