Lines Matching refs:pos1
186 const char *pos1 = NULL, *pos2 = NULL; in TSendMail() local
222 pos1 = strstr(lookup, "from:"); in TSendMail()
224 if (!pos1) { in TSendMail()
226 } else if (pos1 != ZSTR_VAL(headers_lc) && *(pos1-1) != '\n') { in TSendMail()
227 if (strlen(pos1) >= sizeof("from:")) { in TSendMail()
228 lookup = pos1 + sizeof("from:"); in TSendMail()
240 pos1 = headers + (pos1 - lookup) + 5; in TSendMail()
241 if (NULL == (pos2 = strstr(pos1, "\r\n"))) { in TSendMail()
242 RPath = estrndup(pos1, strlen(pos1)); in TSendMail()
244 RPath = estrndup(pos1, pos2 - pos1); in TSendMail()
392 const char *pos1, *pos2; in SendText() local
485 …else if (headers && (pos1 = strstr(headers_lc, "cc:")) && ((pos1 == headers_lc) || (*(pos1-1) == '… in SendText()
489 pos1 = headers + (pos1 - headers_lc) + 3; in SendText()
490 if (NULL == (pos2 = strstr(pos1, "\r\n"))) { in SendText()
491 tempMailTo = estrndup(pos1, strlen(pos1)); in SendText()
503 tempMailTo = estrndup(pos1, pos2 - pos1); in SendText()
550 if ((pos1 = strstr(headers_lc, "bcc:")) && (pos1 == headers_lc || *(pos1-1) == '\n')) { in SendText()
554 pos1 = headers + (pos1 - headers_lc) + 4; in SendText()
555 if (NULL == (pos2 = strstr(pos1, "\r\n"))) { in SendText()
556 tempMailTo = estrndup(pos1, strlen(pos1)); in SendText()
559 pos2 = pos1; in SendText()
571 tempMailTo = estrndup(pos1, pos2 - pos1); in SendText()
575 pos2 = pos1; in SendText()
605 memcpy(stripped_header, headers, pos1 - headers - 4); in SendText()
606 if (pos1 != pos2) { in SendText()
611 memcpy(stripped_header + (pos1 - headers - 4), pos2 + 2, strlen(pos2) - 2); in SendText()