Lines Matching refs:hdrbuf
77 in_hdr, /* currently filling hdrbuf with potential hdr lines */
78 flush_hdr, /* flush hdrbuf; not a header, no special processing */
79 do_hdr /* process hdrbuf as a mail header */
81 /* current state of hdrbuf */
84 wchar_t *hdrbuf[MAXLINES]; /* buffer to hold potential mail header lines */
85 int h_lines; /* index into lines of hdrbuf */
282 * hdrbuf before we're finished
721 * Verifies if current hdrbuf of potential mail header lines
726 * header_chk sets hdr_state to do_hdr if hdrbuf contained a valid
729 * h_lines = hdrbuf index for next line to be saved;
740 * number of lines in hdrbuf that look
751 * go through each line in hdrbuf and see how many
756 for (cp = hdrbuf[l]; *cp == L' '; cp++) {
777 * Save given input line into next element of hdrbuf,
779 * once we decide whether or not the contents of hdrbuf is
782 * Does not allow hdrbuf to exceed MAXLINES lines.
792 int i; /* index into characters a hdrbuf line */
798 * mail header; flush out the hdrbuf, then process
806 hdrbuf[h_lines] = (wchar_t *)malloc(sizeof (wchar_t) *
808 if (hdrbuf[h_lines] == NULL) {
818 /* hdrbuf is empty; process this line normally */
823 prefix(hdrbuf[i]);
824 free(hdrbuf[i]);
832 for (i = 0, cp = line; (hdrbuf[h_lines][i] = *cp) != L'\0'; i++, cp++) {
839 * Outputs the lines currently stored in hdrbuf, according
843 * the hdrbuf and set the hdr_state flag.
851 prefix(hdrbuf[i]);
852 free(hdrbuf[i]);