aboutsummaryrefslogtreecommitdiff
path: root/lib/smtp.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2012-05-17 11:31:06 +0100
committerSteve Holme <steve_holme@hotmail.com>2012-05-17 11:31:06 +0100
commit7ba07c80a16cd4ce711b5ac62d3632ae4145e9a9 (patch)
tree4c1947e1c61e914b513fbe4a4dd48651269c66f3 /lib/smtp.h
parentfec096f153a3df6eba3ca7ef13505c5552f7c5c5 (diff)
smtp: Fixed non-escaping of dot character at beginning of line
A dot character at the beginning of a line would not be escaped to a double dot as required by RFC-2821, instead it would be deleted by the mail server. Please see section 4.5.2 of the RFC for more information. Note: This fix also simplifies the detection of repeated CRLF.CRLF combinations, such as CRLF.CRLF.CRLF, a little rather than having to advance the eob counter to 2.
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 502f65cbe..55f169e02 100644
--- a/lib/smtp.h
+++ b/lib/smtp.h
@@ -82,6 +82,7 @@ extern const struct Curl_handler Curl_handler_smtps;
/* this is the 5-bytes End-Of-Body marker for SMTP */
#define SMTP_EOB "\x0d\x0a\x2e\x0d\x0a"
#define SMTP_EOB_LEN 5
+#define SMTP_EOB_FIND_LEN 3
/* if found in data, replace it with this string instead */
#define SMTP_EOB_REPL "\x0d\x0a\x2e\x2e"