Lines Matching refs:smtpcode
666 int smtpcode,
674 if(smtpcode/100 != 2) {
675 failf(data, "Got unexpected smtp-server response: %d", smtpcode);
686 int smtpcode,
694 if(smtpcode != 220) {
696 failf(data, "STARTTLS denied. %c", smtpcode);
709 static CURLcode smtp_state_ehlo_resp(struct connectdata *conn, int smtpcode,
721 if(smtpcode/100 != 2 && smtpcode != 1) {
726 failf(data, "Remote access denied: %d", smtpcode);
789 if(smtpcode != 1) {
812 static CURLcode smtp_state_helo_resp(struct connectdata *conn, int smtpcode,
820 if(smtpcode/100 != 2) {
821 failf(data, "Remote access denied: %d", smtpcode);
833 int smtpcode,
843 if(smtpcode != 334) {
844 failf(data, "Access denied: %d", smtpcode);
867 int smtpcode,
877 if(smtpcode != 334) {
878 failf(data, "Access denied: %d", smtpcode);
901 int smtpcode,
911 if(smtpcode != 334) {
912 failf(data, "Access denied: %d", smtpcode);
936 int smtpcode,
948 if(smtpcode != 334) {
949 failf(data, "Access denied: %d", smtpcode);
986 int smtpcode,
1001 if(smtpcode != 334) {
1002 failf(data, "Access denied: %d", smtpcode);
1041 int smtpcode,
1049 if(smtpcode != 334) {
1050 failf(data, "Authentication failed: %d", smtpcode);
1069 int smtpcode,
1079 if(smtpcode != 334) {
1080 failf(data, "Access denied: %d", smtpcode);
1104 int smtpcode,
1115 if(smtpcode != 334) {
1116 failf(data, "Access denied: %d", smtpcode);
1155 int smtpcode, smtpstate instate)
1164 if(smtpcode != 334) {
1165 failf(data, "Access denied: %d", smtpcode);
1189 int smtpcode,
1201 (void)smtpcode;
1231 int smtpcode,
1239 if(smtpcode != 235) {
1240 failf(data, "Authentication failed: %d", smtpcode);
1251 static CURLcode smtp_state_command_resp(struct connectdata *conn, int smtpcode,
1262 if((smtp->rcpt && smtpcode/100 != 2 && smtpcode != 553 && smtpcode != 1) ||
1263 (!smtp->rcpt && smtpcode/100 != 2 && smtpcode != 1)) {
1264 failf(data, "Command failed: %d", smtpcode);
1275 if(smtpcode != 1) {
1297 static CURLcode smtp_state_mail_resp(struct connectdata *conn, int smtpcode,
1305 if(smtpcode/100 != 2) {
1306 failf(data, "MAIL failed: %d", smtpcode);
1317 static CURLcode smtp_state_rcpt_resp(struct connectdata *conn, int smtpcode,
1326 if(smtpcode/100 != 2) {
1327 failf(data, "RCPT failed: %d", smtpcode);
1349 static CURLcode smtp_state_data_resp(struct connectdata *conn, int smtpcode,
1357 if(smtpcode != 354) {
1358 failf(data, "DATA failed: %d", smtpcode);
1378 int smtpcode,
1385 if(smtpcode != 250)
1399 int smtpcode;
1414 result = Curl_pp_readresp(sock, pp, &smtpcode, &nread);
1419 if(smtpc->state != SMTP_QUIT && smtpcode != 1)
1420 data->info.httpcode = smtpcode;
1422 if(!smtpcode)
1428 result = smtp_state_servergreet_resp(conn, smtpcode, smtpc->state);
1432 result = smtp_state_ehlo_resp(conn, smtpcode, smtpc->state);
1436 result = smtp_state_helo_resp(conn, smtpcode, smtpc->state);
1440 result = smtp_state_starttls_resp(conn, smtpcode, smtpc->state);
1444 result = smtp_state_auth_plain_resp(conn, smtpcode, smtpc->state);
1448 result = smtp_state_auth_login_resp(conn, smtpcode, smtpc->state);
1452 result = smtp_state_auth_login_password_resp(conn, smtpcode,
1458 result = smtp_state_auth_cram_resp(conn, smtpcode, smtpc->state);
1462 result = smtp_state_auth_digest_resp(conn, smtpcode, smtpc->state);
1466 result = smtp_state_auth_digest_resp_resp(conn, smtpcode, smtpc->state);
1472 result = smtp_state_auth_ntlm_resp(conn, smtpcode, smtpc->state);
1476 result = smtp_state_auth_ntlm_type2msg_resp(conn, smtpcode,
1482 result = smtp_state_auth_xoauth2_resp(conn, smtpcode, smtpc->state);
1486 result = smtp_state_auth_cancel_resp(conn, smtpcode, smtpc->state);
1490 result = smtp_state_auth_final_resp(conn, smtpcode, smtpc->state);
1494 result = smtp_state_command_resp(conn, smtpcode, smtpc->state);
1498 result = smtp_state_mail_resp(conn, smtpcode, smtpc->state);
1502 result = smtp_state_rcpt_resp(conn, smtpcode, smtpc->state);
1506 result = smtp_state_data_resp(conn, smtpcode, smtpc->state);
1510 result = smtp_state_postdata_resp(conn, smtpcode, smtpc->state);