Lines Matching refs:smtpcode

663                                             int smtpcode,  in smtp_state_servergreet_resp()  argument
671 if(smtpcode/100 != 2) { in smtp_state_servergreet_resp()
672 failf(data, "Got unexpected smtp-server response: %d", smtpcode); in smtp_state_servergreet_resp()
683 int smtpcode, in smtp_state_starttls_resp() argument
691 if(smtpcode != 220) { in smtp_state_starttls_resp()
693 failf(data, "STARTTLS denied. %c", smtpcode); in smtp_state_starttls_resp()
706 static CURLcode smtp_state_ehlo_resp(struct connectdata *conn, int smtpcode, in smtp_state_ehlo_resp() argument
718 if(smtpcode/100 != 2 && smtpcode != 1) { in smtp_state_ehlo_resp()
722 failf(data, "Remote access denied: %d", smtpcode); in smtp_state_ehlo_resp()
778 if(smtpcode != 1) { in smtp_state_ehlo_resp()
801 static CURLcode smtp_state_helo_resp(struct connectdata *conn, int smtpcode, in smtp_state_helo_resp() argument
809 if(smtpcode/100 != 2) { in smtp_state_helo_resp()
810 failf(data, "Remote access denied: %d", smtpcode); in smtp_state_helo_resp()
822 int smtpcode, in smtp_state_auth_resp() argument
832 result = Curl_sasl_continue(&smtpc->sasl, conn, smtpcode, &progress); in smtp_state_auth_resp()
850 static CURLcode smtp_state_command_resp(struct connectdata *conn, int smtpcode, in smtp_state_command_resp() argument
861 if((smtp->rcpt && smtpcode/100 != 2 && smtpcode != 553 && smtpcode != 1) || in smtp_state_command_resp()
862 (!smtp->rcpt && smtpcode/100 != 2 && smtpcode != 1)) { in smtp_state_command_resp()
863 failf(data, "Command failed: %d", smtpcode); in smtp_state_command_resp()
874 if(smtpcode != 1) { in smtp_state_command_resp()
896 static CURLcode smtp_state_mail_resp(struct connectdata *conn, int smtpcode, in smtp_state_mail_resp() argument
904 if(smtpcode/100 != 2) { in smtp_state_mail_resp()
905 failf(data, "MAIL failed: %d", smtpcode); in smtp_state_mail_resp()
916 static CURLcode smtp_state_rcpt_resp(struct connectdata *conn, int smtpcode, in smtp_state_rcpt_resp() argument
925 if(smtpcode/100 != 2) { in smtp_state_rcpt_resp()
926 failf(data, "RCPT failed: %d", smtpcode); in smtp_state_rcpt_resp()
948 static CURLcode smtp_state_data_resp(struct connectdata *conn, int smtpcode, in smtp_state_data_resp() argument
956 if(smtpcode != 354) { in smtp_state_data_resp()
957 failf(data, "DATA failed: %d", smtpcode); in smtp_state_data_resp()
977 int smtpcode, in smtp_state_postdata_resp() argument
984 if(smtpcode != 250) in smtp_state_postdata_resp()
998 int smtpcode; in smtp_statemach_act() local
1013 result = Curl_pp_readresp(sock, pp, &smtpcode, &nread); in smtp_statemach_act()
1018 if(smtpc->state != SMTP_QUIT && smtpcode != 1) in smtp_statemach_act()
1019 data->info.httpcode = smtpcode; in smtp_statemach_act()
1021 if(!smtpcode) in smtp_statemach_act()
1027 result = smtp_state_servergreet_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1031 result = smtp_state_ehlo_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1035 result = smtp_state_helo_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1039 result = smtp_state_starttls_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1043 result = smtp_state_auth_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1047 result = smtp_state_command_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1051 result = smtp_state_mail_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1055 result = smtp_state_rcpt_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1059 result = smtp_state_data_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1063 result = smtp_state_postdata_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()