Lines Matching refs:fo

365 fmt(const char *str, struct name *np, FILE *fo, size_t comma)  in fmt()  argument
373 (void)fputs(str, fo); in fmt()
380 (void)fputs("\n ", fo); in fmt()
383 (void)putc(' ', fo); in fmt()
384 (void)fputs(np->n_name, fo); in fmt()
386 (void)putc(',', fo); in fmt()
389 (void)putc('\n', fo); in fmt()
399 fmt2(const char *str, FILE *fo) in fmt2() argument
409 (void)putc(*str, fo); in fmt2()
415 (void)putc(' ', fo); /* output a single space after the ':' */ in fmt2()
424 (void)fputs("\n ", fo); in fmt2()
430 (void)putc(*str, fo); in fmt2()
434 (void)putc('\n', fo); in fmt2()
442 puthead(struct header *hp, FILE *fo, int w) in puthead() argument
449 fmt("To:", hp->h_to, fo, w & GCOMMA), gotcha++; in puthead()
451 (void)fprintf(fo, "Subject: %s\n", hp->h_subject), gotcha++; in puthead()
453 fmt("Cc:", hp->h_cc, fo, w & GCOMMA), gotcha++; in puthead()
455 fmt("Bcc:", hp->h_bcc, fo, w & GCOMMA), gotcha++; in puthead()
457 (void)fprintf(fo, "In-Reply-To: %s\n", hp->h_in_reply_to), gotcha++; in puthead()
459 fmt("References:", hp->h_references, fo, w & GCOMMA), gotcha++; in puthead()
462 fmt2(np->n_name, fo); in puthead()
466 (void)fprintf(fo, "(sendmail options: %s)\n", detract(hp->h_smopts, GSMOPTS)), gotcha++; in puthead()
469 mime_putheader(fo, hp), gotcha++; in puthead()
472 (void)putc('\n', fo); in puthead()
548 FILE *fo; in savemail() local
556 fo = Fopen(name, "aef"); in savemail()
558 if (fo == NULL) { in savemail()
563 (void)fprintf(fo, "From %s %s", myname, ctime(&now)); in savemail()
579 (void)fputc('>', fo); in savemail()
582 (void)fwrite(line, 1, linelen, fo); in savemail()
585 (void)putc('\n', fo); in savemail()
586 (void)fflush(fo); in savemail()
587 if (ferror(fo)) in savemail()
589 (void)Fclose(fo); in savemail()