Lines Matching defs:smtp

37  * Draft   SMTP URL Interface   <draft-earhart-url-smtp-00.txt>
70 #include "smtp.h"
173 /* SASL parameters for the smtp protocol */
175 "smtp", /* The service name */
356 in smtp connections */
529 struct SMTP *smtp = data->req.p.smtp;
531 if(smtp->rcpt) {
538 if((!smtp->custom) || (!smtp->custom[0])) {
544 result = smtp_parse_address(smtp->rcpt->data,
570 (!strcmp(smtp->custom, "EXPN"));
574 "%s %s%s", smtp->custom,
575 smtp->rcpt->data,
582 smtp->custom && smtp->custom[0] != '\0' ?
583 smtp->custom : "HELP");
743 struct SMTP *smtp = data->req.p.smtp;
744 struct curl_slist *rcpt = smtp->rcpt;
787 struct SMTP *smtp = data->req.p.smtp;
793 result = smtp_parse_address(smtp->rcpt->data,
844 failf(data, "Got unexpected smtp-server response: %d", smtpcode);
1035 struct SMTP *smtp = data->req.p.smtp;
1041 if((smtp->rcpt && smtpcode/100 != 2 && smtpcode != 553 && smtpcode != 1) ||
1042 (!smtp->rcpt && smtpcode/100 != 2 && smtpcode != 1)) {
1051 if(smtp->rcpt) {
1052 smtp->rcpt = smtp->rcpt->next;
1054 if(smtp->rcpt) {
1095 struct SMTP *smtp = data->req.p.smtp;
1111 smtp->rcpt_last_error = smtpcode;
1120 smtp->rcpt_had_ok = TRUE;
1124 smtp->rcpt = smtp->rcpt->next;
1126 if(smtp->rcpt)
1132 if(!smtp->rcpt_had_ok) {
1133 failf(data, "RCPT failed: %d (last error)", smtp->rcpt_last_error);
1316 struct SMTP *smtp;
1318 smtp = data->req.p.smtp = calloc(1, sizeof(struct SMTP));
1319 if(!smtp)
1394 struct SMTP *smtp = data->req.p.smtp;
1402 if(!smtp)
1406 Curl_safefree(smtp->custom);
1422 if(smtp->trailing_crlf || !data->state.infilesize) {
1462 smtp->transfer = PPTRANSFER_BODY;
1479 struct SMTP *smtp = data->req.p.smtp;
1485 smtp->transfer = PPTRANSFER_INFO;
1491 smtp->rcpt = data->set.mail_rcpt;
1494 smtp->rcpt_had_ok = FALSE;
1497 smtp->rcpt_last_error = 0;
1501 smtp->trailing_crlf = TRUE;
1502 smtp->eob = 2;
1590 struct SMTP *smtp = data->req.p.smtp;
1594 if(smtp->transfer != PPTRANSFER_BODY)
1739 struct SMTP *smtp = data->req.p.smtp;
1744 result = Curl_urldecode(custom, 0, &smtp->custom, NULL, REJECT_CTRL);
1833 struct SMTP *smtp = data->req.p.smtp;
1853 eob_sent = smtp->eob;
1860 if(SMTP_EOB[smtp->eob] == data->req.upload_fromhere[i]) {
1861 smtp->eob++;
1864 if(2 == smtp->eob || SMTP_EOB_LEN == smtp->eob)
1865 smtp->trailing_crlf = TRUE;
1867 smtp->trailing_crlf = FALSE;
1869 else if(smtp->eob) {
1871 memcpy(&scratch[si], &SMTP_EOB[eob_sent], smtp->eob - eob_sent);
1872 si += smtp->eob - eob_sent;
1876 smtp->eob = 1;
1878 smtp->eob = 0;
1883 smtp->trailing_crlf = FALSE;
1887 if(SMTP_EOB_FIND_LEN == smtp->eob) {
1892 smtp->eob = 0;
1895 else if(!smtp->eob)
1899 if(smtp->eob - eob_sent) {
1901 memcpy(&scratch[si], &SMTP_EOB[eob_sent], smtp->eob - eob_sent);
1902 si += smtp->eob - eob_sent;