char *hdrline, *unfolded, *unqp;
bool hdrsadded = false;
bool subject_present = false;
- int localfd = dup(infd);
- FILE *f = fdopen(localfd, "r");
+ FILE *f = fdopen(dup(infd), "r");
for(;;) {
hdrline = gethdrline(f, &unfolded);
free(unfolded);
}
- lseek(localfd, ftello(f), SEEK_SET);
+ lseek(infd, ftello(f), SEEK_SET);
/* Just print the rest of the mail */
- if(dumpfd2fd(localfd, outfd) < 0) {
+ if(dumpfd2fd(infd, outfd) < 0) {
log_error(LOG_ARGS, "Error when dumping rest of mail");
return -1;
}