Lines Matching refs:lp
295 prepend(struct letter* lp)
301 lp->head = lp->body = 0;
311 lp->head = ftell(nfo);
312 headout(nfo, lp->hp, GSEND|GEXTERN|GNL|GCOMMA);
313 lp->body = ftell(nfo);
314 if (filecopy("message body", lp->fp, state.tmp.mail, nfo, NiL, (off_t)0, NiL, NiL, 0)) {
317 lp->head = lp->body = 0;
318 rewind(lp->fp);
322 fileclose(lp->fp);
323 lp->fp = nfi;
332 savemail(struct letter* lp, char* name)
337 filecopy(NiL, lp->fp, name, fp, NiL, (off_t)0, NiL, NiL, GNL);
339 rewind(lp->fp);
396 register struct letter* lp = (struct letter*)context;
421 filecopy(NiL, lp->fp, state.tmp.edit, fp, NiL, (off_t)0, NiL, NiL, GNL);
422 rewind(lp->fp);
436 filecopy(NiL, lp->fp, name, fp, NiL, (off_t)0, NiL, NiL, GNL);
437 rewind(lp->fp);
616 register const struct lab* lp;
662 for (lp = state.hdrtab; lp->name; lp++)
663 if (flags & lp->type) {
665 if (lp->type & GSUB)
666 fprintf(fp, "%s%s\n", lp->name, hp->h_subject);
668 fmt(fp, hp, lp->name, lp->type, comma);
670 else if (force & lp->type)
671 fprintf(fp, "%s\n", lp->name);