Lines Matching refs:smtpcode
839 int smtpcode, in smtp_state_servergreet_resp() argument
845 if(smtpcode/100 != 2) { in smtp_state_servergreet_resp()
846 failf(data, "Got unexpected smtp-server response: %d", smtpcode); in smtp_state_servergreet_resp()
857 int smtpcode, in smtp_state_starttls_resp() argument
867 if(smtpcode != 220) { in smtp_state_starttls_resp()
869 failf(data, "STARTTLS denied, code %d", smtpcode); in smtp_state_starttls_resp()
883 struct connectdata *conn, int smtpcode, in smtp_state_ehlo_resp() argument
893 if(smtpcode/100 != 2 && smtpcode != 1) { in smtp_state_ehlo_resp()
898 failf(data, "Remote access denied: %d", smtpcode); in smtp_state_ehlo_resp()
959 if(smtpcode != 1) { in smtp_state_ehlo_resp()
986 static CURLcode smtp_state_helo_resp(struct Curl_easy *data, int smtpcode, in smtp_state_helo_resp() argument
992 if(smtpcode/100 != 2) { in smtp_state_helo_resp()
993 failf(data, "Remote access denied: %d", smtpcode); in smtp_state_helo_resp()
1005 int smtpcode, in smtp_state_auth_resp() argument
1015 result = Curl_sasl_continue(&smtpc->sasl, data, smtpcode, &progress); in smtp_state_auth_resp()
1033 static CURLcode smtp_state_command_resp(struct Curl_easy *data, int smtpcode, in smtp_state_command_resp() argument
1043 if((smtp->rcpt && smtpcode/100 != 2 && smtpcode != 553 && smtpcode != 1) || in smtp_state_command_resp()
1044 (!smtp->rcpt && smtpcode/100 != 2 && smtpcode != 1)) { in smtp_state_command_resp()
1045 failf(data, "Command failed: %d", smtpcode); in smtp_state_command_resp()
1052 if(smtpcode != 1) { in smtp_state_command_resp()
1074 static CURLcode smtp_state_mail_resp(struct Curl_easy *data, int smtpcode, in smtp_state_mail_resp() argument
1080 if(smtpcode/100 != 2) { in smtp_state_mail_resp()
1081 failf(data, "MAIL failed: %d", smtpcode); in smtp_state_mail_resp()
1093 struct connectdata *conn, int smtpcode, in smtp_state_rcpt_resp() argument
1103 is_smtp_err = (smtpcode/100 != 2); in smtp_state_rcpt_resp()
1112 smtp->rcpt_last_error = smtpcode; in smtp_state_rcpt_resp()
1115 failf(data, "RCPT failed: %d", smtpcode); in smtp_state_rcpt_resp()
1151 static CURLcode smtp_state_data_resp(struct Curl_easy *data, int smtpcode, in smtp_state_data_resp() argument
1157 if(smtpcode != 354) { in smtp_state_data_resp()
1158 failf(data, "DATA failed: %d", smtpcode); in smtp_state_data_resp()
1178 int smtpcode, in smtp_state_postdata_resp() argument
1185 if(smtpcode != 250) in smtp_state_postdata_resp()
1198 int smtpcode; in smtp_statemachine() local
1214 result = Curl_pp_readresp(data, FIRSTSOCKET, pp, &smtpcode, &nread); in smtp_statemachine()
1219 if(smtpc->state != SMTP_QUIT && smtpcode != 1) in smtp_statemachine()
1220 data->info.httpcode = smtpcode; in smtp_statemachine()
1222 if(!smtpcode) in smtp_statemachine()
1228 result = smtp_state_servergreet_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1232 result = smtp_state_ehlo_resp(data, conn, smtpcode, smtpc->state); in smtp_statemachine()
1236 result = smtp_state_helo_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1240 result = smtp_state_starttls_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1248 result = smtp_state_auth_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1252 result = smtp_state_command_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1256 result = smtp_state_mail_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1260 result = smtp_state_rcpt_resp(data, conn, smtpcode, smtpc->state); in smtp_statemachine()
1264 result = smtp_state_data_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1268 result = smtp_state_postdata_resp(data, smtpcode, smtpc->state); in smtp_statemachine()