mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:33:35 +03:00
smtp: Allow RCPT TO command to fail for some recipients
Introduces CURLOPT_MAIL_RCPT_ALLLOWFAILS. Verified with the new tests 3002-3007 Closes #4816
This commit is contained in:
parent
23a17e039d
commit
4a4609bf3c
22 changed files with 483 additions and 26 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue