Lines Matching refs:smtp

532   struct SMTP *smtp = data->req.p.smtp;  in smtp_perform_command()  local
534 if(smtp->rcpt) { in smtp_perform_command()
541 if((!smtp->custom) || (!smtp->custom[0])) { in smtp_perform_command()
547 result = smtp_parse_address(smtp->rcpt->data, in smtp_perform_command()
573 (!strcmp(smtp->custom, "EXPN")); in smtp_perform_command()
577 "%s %s%s", smtp->custom, in smtp_perform_command()
578 smtp->rcpt->data, in smtp_perform_command()
585 smtp->custom && smtp->custom[0] != '\0' ? in smtp_perform_command()
586 smtp->custom : "HELP"); in smtp_perform_command()
739 struct SMTP *smtp = data->req.p.smtp; in smtp_perform_mail() local
740 struct curl_slist *rcpt = smtp->rcpt; in smtp_perform_mail()
789 struct SMTP *smtp = data->req.p.smtp; in smtp_perform_rcpt_to() local
795 result = smtp_parse_address(smtp->rcpt->data, in smtp_perform_rcpt_to()
1037 struct SMTP *smtp = data->req.p.smtp; in smtp_state_command_resp() local
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()
1053 if(smtp->rcpt) { in smtp_state_command_resp()
1054 smtp->rcpt = smtp->rcpt->next; in smtp_state_command_resp()
1056 if(smtp->rcpt) { in smtp_state_command_resp()
1097 struct SMTP *smtp = data->req.p.smtp; in smtp_state_rcpt_resp() local
1112 smtp->rcpt_last_error = smtpcode; in smtp_state_rcpt_resp()
1121 smtp->rcpt_had_ok = TRUE; in smtp_state_rcpt_resp()
1125 smtp->rcpt = smtp->rcpt->next; in smtp_state_rcpt_resp()
1127 if(smtp->rcpt) in smtp_state_rcpt_resp()
1133 if(!smtp->rcpt_had_ok) { in smtp_state_rcpt_resp()
1134 failf(data, "RCPT failed: %d (last error)", smtp->rcpt_last_error); in smtp_state_rcpt_resp()
1321 struct SMTP *smtp; in smtp_init() local
1323 smtp = data->req.p.smtp = calloc(1, sizeof(struct SMTP)); in smtp_init()
1324 if(!smtp) in smtp_init()
1399 struct SMTP *smtp = data->req.p.smtp; in smtp_done() local
1403 if(!smtp) in smtp_done()
1407 Curl_safefree(smtp->custom); in smtp_done()
1423 smtp->transfer = PPTRANSFER_BODY; in smtp_done()
1441 struct SMTP *smtp = data->req.p.smtp; in smtp_perform() local
1447 smtp->transfer = PPTRANSFER_INFO; in smtp_perform()
1453 smtp->rcpt = data->set.mail_rcpt; in smtp_perform()
1456 smtp->rcpt_had_ok = FALSE; in smtp_perform()
1459 smtp->rcpt_last_error = 0; in smtp_perform()
1463 smtp->trailing_crlf = TRUE; in smtp_perform()
1464 smtp->eob = 2; in smtp_perform()
1553 struct SMTP *smtp = data->req.p.smtp; in smtp_dophase_done() local
1557 if(smtp->transfer != PPTRANSFER_BODY) in smtp_dophase_done()
1703 struct SMTP *smtp = data->req.p.smtp; in smtp_parse_custom_request() local
1708 result = Curl_urldecode(custom, 0, &smtp->custom, NULL, REJECT_CTRL); in smtp_parse_custom_request()