Lines Matching refs:header_buffer
693 static int addToHeader(char **header_buffer, const char *specifier, const char *string) in addToHeader() argument
695 …*header_buffer = erealloc(*header_buffer, strlen(*header_buffer) + strlen(specifier) + strlen(stri… in addToHeader()
696 sprintf(*header_buffer + strlen(*header_buffer), specifier, string); in addToHeader()
717 char *header_buffer; in PostHeader() local
732 header_buffer = ecalloc(1, MAIL_BUFFER_SIZE); in PostHeader()
738 snprintf(header_buffer, MAIL_BUFFER_SIZE, "Date: %s\r\n", ZSTR_VAL(dt)); in PostHeader()
743 if (!addToHeader(&header_buffer, "From: %s\r\n", RPath)) { in PostHeader()
747 if (!addToHeader(&header_buffer, "Subject: %s\r\n", Subject)) { in PostHeader()
753 if (!addToHeader(&header_buffer, "To: %s\r\n", mailTo)) { in PostHeader()
758 if (!addToHeader(&header_buffer, "%s\r\n", xheaders)) { in PostHeader()
766 if ((res = Post(header_buffer)) != SUCCESS) { in PostHeader()
767 efree(header_buffer); in PostHeader()
770 efree(header_buffer); in PostHeader()