aboutsummaryrefslogtreecommitdiff
path: root/lib/smtp.h
diff options
context:
space:
mode:
authorFrantišek Kučera <fiki@robot.frantovo.cz>2012-09-02 10:53:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-09-04 16:54:41 +0200
commit0a0f3c63a624b719f97147fcc2ff28a9ed643a45 (patch)
treebb3ca4923e59533a6cdee9060f3674d23802e9af /lib/smtp.h
parentda0d15733cf331f3f230178cd5295a23ddb952de (diff)
SMTP: only send SIZE if supported
SMTP client will send SIZE parameter in MAIL FROM command only if server supports it. Without this patch server might say "504 Command parameter not implemented" and reject the message. Bug: http://curl.haxx.se/bug/view.cgi?id=3564114
Diffstat (limited to 'lib/smtp.h')
-rw-r--r--lib/smtp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/smtp.h b/lib/smtp.h
index 38fd1b70a..d68a659b5 100644
--- a/lib/smtp.h
+++ b/lib/smtp.h
@@ -66,6 +66,8 @@ struct smtp_conn {
struct curl_slist *rcpt; /* Recipient list */
bool ssldone; /* Is connect() over SSL done? only relevant in
multi mode */
+ bool size_supported; /* If server supports SIZE extension according to
+ RFC 1870 */
};
extern const struct Curl_handler Curl_handler_smtp;