aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-11-17 09:45:08 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-11-17 10:09:07 +0000
commit3c8c9b2779df175f2f740bb6fbe414e0c56f94b6 (patch)
tree4aa12c7d0c5ffb3a526716787538b32d2da5cf68 /lib
parentb27dc009cfb887eddbcf3f2d8b80f79852cb3ef1 (diff)
smtp: Changed the default command to HELP when no options are specified
Otherwise a NOOP operation would be performed which a) only returns a single line response and not a multiline response where -I needs to be used, and b) provides an inconsistent user experience compared to that of the POP3 and IMAP protocols.
Diffstat (limited to 'lib')
-rw-r--r--lib/smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 120afaf80..5675ff4ee 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -571,8 +571,8 @@ static CURLcode smtp_perform_command(struct connectdata *conn)
/* Send the VRFY command */
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "VRFY %s", smtp->rcpt->data);
else
- /* Send the NOOP command */
- result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "NOOP");
+ /* Send the HELP command */
+ result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "HELP");
if(!result)
state(conn, SMTP_COMMAND);