Lines Matching refs:smtp

520   struct SMTP *smtp = data->req.protop;  in smtp_perform_command()  local
523 if(smtp->rcpt) in smtp_perform_command()
525 smtp->custom && smtp->custom[0] != '\0' ? in smtp_perform_command()
526 smtp->custom : "VRFY", in smtp_perform_command()
527 smtp->rcpt->data); in smtp_perform_command()
530 smtp->custom && smtp->custom[0] != '\0' ? in smtp_perform_command()
531 smtp->custom : "HELP"); in smtp_perform_command()
627 struct SMTP *smtp = data->req.protop; in smtp_perform_rcpt_to() local
630 if(smtp->rcpt->data[0] == '<') in smtp_perform_rcpt_to()
632 smtp->rcpt->data); in smtp_perform_rcpt_to()
635 smtp->rcpt->data); in smtp_perform_rcpt_to()
855 struct SMTP *smtp = data->req.protop; in smtp_state_command_resp() local
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()
875 if(smtp->rcpt) { in smtp_state_command_resp()
876 smtp->rcpt = smtp->rcpt->next; in smtp_state_command_resp()
878 if(smtp->rcpt) { in smtp_state_command_resp()
921 struct SMTP *smtp = data->req.protop; in smtp_state_rcpt_resp() local
930 smtp->rcpt = smtp->rcpt->next; in smtp_state_rcpt_resp()
932 if(smtp->rcpt) in smtp_state_rcpt_resp()
1113 struct SMTP *smtp; in smtp_init() local
1115 smtp = data->req.protop = calloc(sizeof(struct SMTP), 1); in smtp_init()
1116 if(!smtp) in smtp_init()
1194 struct SMTP *smtp = data->req.protop; in smtp_done() local
1202 if(!smtp || !pp->conn) in smtp_done()
1222 if(smtp->trailing_crlf || !conn->data->state.infilesize) { in smtp_done()
1268 Curl_safefree(smtp->custom); in smtp_done()
1271 smtp->transfer = FTPTRANSFER_BODY; in smtp_done()
1289 struct SMTP *smtp = data->req.protop; in smtp_perform() local
1295 smtp->transfer = FTPTRANSFER_INFO; in smtp_perform()
1301 smtp->rcpt = data->set.mail_rcpt; in smtp_perform()
1386 struct SMTP *smtp = conn->data->req.protop; in smtp_dophase_done() local
1390 if(smtp->transfer != FTPTRANSFER_BODY) in smtp_dophase_done()
1561 struct SMTP *smtp = data->req.protop; in smtp_parse_custom_request() local
1566 result = Curl_urldecode(data, custom, 0, &smtp->custom, NULL, TRUE); in smtp_parse_custom_request()
1582 struct SMTP *smtp = data->req.protop; in Curl_smtp_escape_eob() local
1601 eob_sent = smtp->eob; in Curl_smtp_escape_eob()
1606 if(SMTP_EOB[smtp->eob] == data->req.upload_fromhere[i]) { in Curl_smtp_escape_eob()
1607 smtp->eob++; in Curl_smtp_escape_eob()
1610 if(2 == smtp->eob || SMTP_EOB_LEN == smtp->eob) in Curl_smtp_escape_eob()
1611 smtp->trailing_crlf = TRUE; in Curl_smtp_escape_eob()
1613 smtp->trailing_crlf = FALSE; in Curl_smtp_escape_eob()
1615 else if(smtp->eob) { in Curl_smtp_escape_eob()
1617 memcpy(&scratch[si], &SMTP_EOB[eob_sent], smtp->eob - eob_sent); in Curl_smtp_escape_eob()
1618 si += smtp->eob - eob_sent; in Curl_smtp_escape_eob()
1622 smtp->eob = 1; in Curl_smtp_escape_eob()
1624 smtp->eob = 0; in Curl_smtp_escape_eob()
1629 smtp->trailing_crlf = FALSE; in Curl_smtp_escape_eob()
1633 if(SMTP_EOB_FIND_LEN == smtp->eob) { in Curl_smtp_escape_eob()
1638 smtp->eob = 0; in Curl_smtp_escape_eob()
1641 else if(!smtp->eob) in Curl_smtp_escape_eob()
1645 if(smtp->eob - eob_sent) { in Curl_smtp_escape_eob()
1647 memcpy(&scratch[si], &SMTP_EOB[eob_sent], smtp->eob - eob_sent); in Curl_smtp_escape_eob()
1648 si += smtp->eob - eob_sent; in Curl_smtp_escape_eob()