mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:23:33 +03:00
smtp: Fixed sending of double CRLF caused by first in EOB
If the mail sent during the transfer contains a terminating <CRLF> then we should not send the first <CRLF> of the EOB as specified in RFC-5321. Additionally don't send the <CRLF> if there is "no mail data" as the DATA command already includes it.
This commit is contained in:
parent
087f9bb20a
commit
99b4045183
14 changed files with 29 additions and 25 deletions
|
|
@ -62,6 +62,7 @@ struct SMTP {
|
|||
struct curl_slist *rcpt; /* Recipient list */
|
||||
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 */
|
||||
};
|
||||
|
||||
/* smtp_conn is used for struct connection-oriented data in the connectdata
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue