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.
This commit is contained in:
Steve Holme
2013-11-17 09:45:08 +00:00
parent b27dc009cf
commit 3c8c9b2779
3 changed files with 10 additions and 11 deletions

View File

@@ -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);