Lines Matching full:hp

283 mail1(struct header *hp, int printheaders)  in mail1()  argument
296 if ((mtf = collect(hp, printheaders)) == NULL) { in mail1()
303 grabh(hp, GCC); in mail1()
305 grabh(hp, GBCC); in mail1()
314 if (hp->h_subject == NULL) in mail1()
325 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); in mail1()
334 to = outof(to, mtf, hp); in mail1()
350 bcopy(hp->h_to, nsto, sizeof(struct name)); in mail1()
352 fixhead(hp, to); in mail1()
353 if ((mtf = infix(hp, mtf)) == NULL) { in mail1()
357 namelist = unpack(cat(hp->h_smopts, to)); in mail1()
422 fixhead(struct header *hp, struct name *tolist) in fixhead() argument
426 hp->h_to = NULL; in fixhead()
427 hp->h_cc = NULL; in fixhead()
428 hp->h_bcc = NULL; in fixhead()
434 hp->h_to = in fixhead()
435 cat(hp->h_to, nalloc(np->n_name, np->n_type)); in fixhead()
437 hp->h_cc = in fixhead()
438 cat(hp->h_cc, nalloc(np->n_name, np->n_type)); in fixhead()
440 hp->h_bcc = in fixhead()
441 cat(hp->h_bcc, nalloc(np->n_name, np->n_type)); in fixhead()
450 infix(struct header *hp, FILE *fi) in infix() argument
470 (void)puthead(hp, nfo, in infix()
501 puthead(struct header *hp, FILE *fo, int w) in puthead() argument
506 if (hp->h_to != NULL && w & GTO) in puthead()
507 fmt("To:", hp->h_to, fo, w&GCOMMA), gotcha++; in puthead()
508 if (hp->h_subject != NULL && w & GSUBJECT) in puthead()
509 fprintf(fo, "Subject: %s\n", hp->h_subject), gotcha++; in puthead()
510 if (hp->h_cc != NULL && w & GCC) in puthead()
511 fmt("Cc:", hp->h_cc, fo, w&GCOMMA), gotcha++; in puthead()
512 if (hp->h_bcc != NULL && w & GBCC) in puthead()
513 fmt("Bcc:", hp->h_bcc, fo, w&GCOMMA), gotcha++; in puthead()
514 if (hp->h_replyto != NULL && w & GREPLYTO) in puthead()
515 fprintf(fo, "Reply-To: %s\n", hp->h_replyto), gotcha++; in puthead()
516 if (hp->h_inreplyto != NULL && w & GINREPLYTO) in puthead()
517 fprintf(fo, "In-Reply-To: <%s>\n", hp->h_inreplyto), gotcha++; in puthead()