Lines Matching refs:smtp
485 struct SMTP *smtp = data->req.protop; in smtp_perform_command() local
488 if(smtp->rcpt) in smtp_perform_command()
490 smtp->custom && smtp->custom[0] != '\0' ? in smtp_perform_command()
491 smtp->custom : "VRFY", in smtp_perform_command()
492 smtp->rcpt->data); in smtp_perform_command()
495 smtp->custom && smtp->custom[0] != '\0' ? in smtp_perform_command()
496 smtp->custom : "HELP"); in smtp_perform_command()
624 struct SMTP *smtp = data->req.protop; in smtp_perform_rcpt_to() local
627 if(smtp->rcpt->data[0] == '<') in smtp_perform_rcpt_to()
629 smtp->rcpt->data); in smtp_perform_rcpt_to()
632 smtp->rcpt->data); in smtp_perform_rcpt_to()
852 struct SMTP *smtp = data->req.protop; in smtp_state_command_resp() local
858 if((smtp->rcpt && smtpcode/100 != 2 && smtpcode != 553 && smtpcode != 1) || in smtp_state_command_resp()
859 (!smtp->rcpt && smtpcode/100 != 2 && smtpcode != 1)) { in smtp_state_command_resp()
872 if(smtp->rcpt) { in smtp_state_command_resp()
873 smtp->rcpt = smtp->rcpt->next; in smtp_state_command_resp()
875 if(smtp->rcpt) { in smtp_state_command_resp()
918 struct SMTP *smtp = data->req.protop; in smtp_state_rcpt_resp() local
927 smtp->rcpt = smtp->rcpt->next; in smtp_state_rcpt_resp()
929 if(smtp->rcpt) in smtp_state_rcpt_resp()
1111 struct SMTP *smtp; in smtp_init() local
1113 smtp = data->req.protop = calloc(sizeof(struct SMTP), 1); in smtp_init()
1114 if(!smtp) in smtp_init()
1192 struct SMTP *smtp = data->req.protop; in smtp_done() local
1200 if(!smtp || !pp->conn) in smtp_done()
1204 Curl_safefree(smtp->custom); in smtp_done()
1220 if(smtp->trailing_crlf || !conn->data->state.infilesize) { in smtp_done()
1265 smtp->transfer = FTPTRANSFER_BODY; in smtp_done()
1283 struct SMTP *smtp = data->req.protop; in smtp_perform() local
1289 smtp->transfer = FTPTRANSFER_INFO; in smtp_perform()
1295 smtp->rcpt = data->set.mail_rcpt; in smtp_perform()
1299 smtp->trailing_crlf = TRUE; in smtp_perform()
1300 smtp->eob = 2; in smtp_perform()
1385 struct SMTP *smtp = conn->data->req.protop; in smtp_dophase_done() local
1389 if(smtp->transfer != FTPTRANSFER_BODY) in smtp_dophase_done()
1537 struct SMTP *smtp = data->req.protop; in smtp_parse_custom_request() local
1542 result = Curl_urldecode(data, custom, 0, &smtp->custom, NULL, TRUE); in smtp_parse_custom_request()
1558 struct SMTP *smtp = data->req.protop; in Curl_smtp_escape_eob() local
1578 eob_sent = smtp->eob; in Curl_smtp_escape_eob()
1583 if(SMTP_EOB[smtp->eob] == data->req.upload_fromhere[i]) { in Curl_smtp_escape_eob()
1584 smtp->eob++; in Curl_smtp_escape_eob()
1587 if(2 == smtp->eob || SMTP_EOB_LEN == smtp->eob) in Curl_smtp_escape_eob()
1588 smtp->trailing_crlf = TRUE; in Curl_smtp_escape_eob()
1590 smtp->trailing_crlf = FALSE; in Curl_smtp_escape_eob()
1592 else if(smtp->eob) { in Curl_smtp_escape_eob()
1594 memcpy(&scratch[si], &SMTP_EOB[eob_sent], smtp->eob - eob_sent); in Curl_smtp_escape_eob()
1595 si += smtp->eob - eob_sent; in Curl_smtp_escape_eob()
1599 smtp->eob = 1; in Curl_smtp_escape_eob()
1601 smtp->eob = 0; in Curl_smtp_escape_eob()
1606 smtp->trailing_crlf = FALSE; in Curl_smtp_escape_eob()
1610 if(SMTP_EOB_FIND_LEN == smtp->eob) { in Curl_smtp_escape_eob()
1615 smtp->eob = 0; in Curl_smtp_escape_eob()
1618 else if(!smtp->eob) in Curl_smtp_escape_eob()
1622 if(smtp->eob - eob_sent) { in Curl_smtp_escape_eob()
1624 memcpy(&scratch[si], &SMTP_EOB[eob_sent], smtp->eob - eob_sent); in Curl_smtp_escape_eob()
1625 si += smtp->eob - eob_sent; in Curl_smtp_escape_eob()