Lines Matching refs:pos1
185 const char *pos1 = NULL, *pos2 = NULL; in TSendMail() local
221 pos1 = strstr(lookup, "from:"); in TSendMail()
223 if (!pos1) { in TSendMail()
225 } else if (pos1 != ZSTR_VAL(headers_lc) && *(pos1-1) != '\n') { in TSendMail()
226 if (strlen(pos1) >= sizeof("from:")) { in TSendMail()
227 lookup = pos1 + sizeof("from:"); in TSendMail()
239 pos1 = headers + (pos1 - lookup) + 5; in TSendMail()
240 if (NULL == (pos2 = strstr(pos1, "\r\n"))) { in TSendMail()
241 RPath = estrndup(pos1, strlen(pos1)); in TSendMail()
243 RPath = estrndup(pos1, pos2 - pos1); in TSendMail()
391 const char *pos1, *pos2; in SendText() local
484 …else if (headers && (pos1 = strstr(headers_lc, "cc:")) && ((pos1 == headers_lc) || (*(pos1-1) == '… in SendText()
488 pos1 = headers + (pos1 - headers_lc) + 3; in SendText()
489 if (NULL == (pos2 = strstr(pos1, "\r\n"))) { in SendText()
490 tempMailTo = estrndup(pos1, strlen(pos1)); in SendText()
502 tempMailTo = estrndup(pos1, pos2 - pos1); in SendText()
549 if ((pos1 = strstr(headers_lc, "bcc:")) && (pos1 == headers_lc || *(pos1-1) == '\n')) { in SendText()
553 pos1 = headers + (pos1 - headers_lc) + 4; in SendText()
554 if (NULL == (pos2 = strstr(pos1, "\r\n"))) { in SendText()
555 tempMailTo = estrndup(pos1, strlen(pos1)); in SendText()
558 pos2 = pos1; in SendText()
570 tempMailTo = estrndup(pos1, pos2 - pos1); in SendText()
574 pos2 = pos1; in SendText()
604 memcpy(stripped_header, headers, pos1 - headers - 4); in SendText()
605 if (pos1 != pos2) { in SendText()
610 memcpy(stripped_header + (pos1 - headers - 4), pos2 + 2, strlen(pos2) - 2); in SendText()