Lines Matching refs:hp

289 mail1(struct header *hp, int printheaders)  in mail1()  argument
302 if ((mtf = collect(hp, printheaders)) == NULL) in mail1()
307 grabh(hp, GCC); in mail1()
309 grabh(hp, GBCC); in mail1()
318 if (hp->h_subject == NULL) in mail1()
329 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); in mail1()
338 to = outof(to, mtf, hp); in mail1()
354 bcopy(hp->h_to, nsto, sizeof(struct name)); in mail1()
356 fixhead(hp, to); in mail1()
357 if ((mtf = infix(hp, mtf)) == NULL) { in mail1()
361 namelist = unpack(cat(hp->h_smopts, to)); in mail1()
426 fixhead(struct header *hp, struct name *tolist) in fixhead() argument
430 hp->h_to = NULL; in fixhead()
431 hp->h_cc = NULL; in fixhead()
432 hp->h_bcc = NULL; in fixhead()
438 hp->h_to = in fixhead()
439 cat(hp->h_to, nalloc(np->n_name, np->n_type)); in fixhead()
441 hp->h_cc = in fixhead()
442 cat(hp->h_cc, nalloc(np->n_name, np->n_type)); in fixhead()
444 hp->h_bcc = in fixhead()
445 cat(hp->h_bcc, nalloc(np->n_name, np->n_type)); in fixhead()
454 infix(struct header *hp, FILE *fi) in infix() argument
474 (void)puthead(hp, nfo, in infix()
505 puthead(struct header *hp, FILE *fo, int w) in puthead() argument
510 if (hp->h_to != NULL && w & GTO) in puthead()
511 fmt("To:", hp->h_to, fo, w&GCOMMA), gotcha++; in puthead()
512 if (hp->h_subject != NULL && w & GSUBJECT) in puthead()
513 fprintf(fo, "Subject: %s\n", hp->h_subject), gotcha++; in puthead()
514 if (hp->h_cc != NULL && w & GCC) in puthead()
515 fmt("Cc:", hp->h_cc, fo, w&GCOMMA), gotcha++; in puthead()
516 if (hp->h_bcc != NULL && w & GBCC) in puthead()
517 fmt("Bcc:", hp->h_bcc, fo, w&GCOMMA), gotcha++; in puthead()
518 if (hp->h_replyto != NULL && w & GREPLYTO) in puthead()
519 fprintf(fo, "Reply-To: %s\n", hp->h_replyto), gotcha++; in puthead()
520 if (hp->h_inreplyto != NULL && w & GINREPLYTO) in puthead()
521 fprintf(fo, "In-Reply-To: <%s>\n", hp->h_inreplyto), gotcha++; in puthead()