aboutsummaryrefslogtreecommitdiff
path: root/lib/smtp.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-12-30 21:52:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-12-30 21:52:27 +0000
commit5e6ffe353ab478d67c2964de5a3eb2fd9fcb0528 (patch)
tree549b29be4a73756bdf19e8a4f0dbb67be4a965c0 /lib/smtp.h
parentd7cd761047376576d281bbc2dc40c02afa251912 (diff)
(SMTP) support DATA better in the server and make sure to "escape" CRLF.CRLF
sequences in uploaded data. The test server doesn't "decode" escaped dot-lines but instead test cases must be written to take them into account. Added test case 803 to verify dot-escaping.
Diffstat (limited to 'lib/smtp.h')
-rw-r--r--lib/smtp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/smtp.h b/lib/smtp.h
index 199481a0b..ec0bcfb8b 100644
--- a/lib/smtp.h
+++ b/lib/smtp.h
@@ -58,4 +58,8 @@ extern const struct Curl_handler Curl_handler_smtps;
#define SMTP_EOB "\x0d\x0a\x2e\x0d\x0a"
#define SMTP_EOB_LEN 5
+/* if found in data, replace it with this string instead */
+#define SMTP_EOB_REPL "\x0d\x0a\x2e\x2e"
+#define SMTP_EOB_REPL_LEN 4
+
#endif /* __SMTP_H */