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 /lib/smtp.h | |
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 'lib/smtp.h')
-rw-r--r-- | lib/smtp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/smtp.h b/lib/smtp.h index 20fc08119..0865d91e7 100644 --- a/lib/smtp.h +++ b/lib/smtp.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2009 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2009 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -55,6 +55,9 @@ struct SMTP { curl_pp_transfer transfer; char *custom; /* Custom Request */ struct curl_slist *rcpt; /* Recipient list */ + bool rcpt_had_ok; /* Whether any of RCPT TO commands (depends on + total number of recipients) succeeded so far */ + int rcpt_last_error; /* The last error received for RCPT TO command */ size_t eob; /* Number of bytes of the EOB (End Of Body) that have been received so far */ bool trailing_crlf; /* Specifies if the tailing CRLF is present */ |