Lines Matching full:hp

283 mail1(struct header *hp, int printheaders)  in mail1()  argument
296 if ((mtf = collect(hp, printheaders)) == NULL) in mail1()
301 grabh(hp, GCC); in mail1()
303 grabh(hp, GBCC); in mail1()
312 if (hp->h_subject == NULL) in mail1()
323 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); in mail1()
332 to = outof(to, mtf, hp); in mail1()
348 bcopy(hp->h_to, nsto, sizeof(struct name)); in mail1()
350 fixhead(hp, to); in mail1()
351 if ((mtf = infix(hp, mtf)) == NULL) { in mail1()
355 namelist = unpack(cat(hp->h_smopts, to)); in mail1()
420 fixhead(struct header *hp, struct name *tolist) in fixhead() argument
424 hp->h_to = NULL; in fixhead()
425 hp->h_cc = NULL; in fixhead()
426 hp->h_bcc = NULL; in fixhead()
432 hp->h_to = in fixhead()
433 cat(hp->h_to, nalloc(np->n_name, np->n_type)); in fixhead()
435 hp->h_cc = in fixhead()
436 cat(hp->h_cc, nalloc(np->n_name, np->n_type)); in fixhead()
438 hp->h_bcc = in fixhead()
439 cat(hp->h_bcc, nalloc(np->n_name, np->n_type)); in fixhead()
448 infix(struct header *hp, FILE *fi) in infix() argument
468 (void)puthead(hp, nfo, in infix()
499 puthead(struct header *hp, FILE *fo, int w) in puthead() argument
504 if (hp->h_to != NULL && w & GTO) in puthead()
505 fmt("To:", hp->h_to, fo, w&GCOMMA), gotcha++; in puthead()
506 if (hp->h_subject != NULL && w & GSUBJECT) in puthead()
507 fprintf(fo, "Subject: %s\n", hp->h_subject), gotcha++; in puthead()
508 if (hp->h_cc != NULL && w & GCC) in puthead()
509 fmt("Cc:", hp->h_cc, fo, w&GCOMMA), gotcha++; in puthead()
510 if (hp->h_bcc != NULL && w & GBCC) in puthead()
511 fmt("Bcc:", hp->h_bcc, fo, w&GCOMMA), gotcha++; in puthead()
512 if (hp->h_replyto != NULL && w & GREPLYTO) in puthead()
513 fprintf(fo, "Reply-To: %s\n", hp->h_replyto), gotcha++; in puthead()
514 if (hp->h_inreplyto != NULL && w & GINREPLYTO) in puthead()
515 fprintf(fo, "In-Reply-To: <%s>\n", hp->h_inreplyto), gotcha++; in puthead()