mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:03:37 +03:00
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:
parent
b27dc009cf
commit
3c8c9b2779
3 changed files with 10 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue