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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user