summaryrefslogtreecommitdiff
path: root/lib/smtp.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-05-04 09:52:09 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-05-04 10:00:33 +0100
commit99b40451836dfea2d5dce2ada4fab15b2ab5bfb2 (patch)
tree1ee978ec9e40ba8cc9bf1c38ecc5ed3099505319 /lib/smtp.h
parent087f9bb20ae8517a8aa8fa847fe7b25ab0603ad7 (diff)
downloadcurl-99b40451836dfea2d5dce2ada4fab15b2ab5bfb2.tar.gz
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.
Diffstat (limited to 'lib/smtp.h')
-rw-r--r--lib/smtp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/smtp.h b/lib/smtp.h
index 7a03e51ce..4aff0c5f9 100644
--- a/lib/smtp.h
+++ b/lib/smtp.h
@@ -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