push();
}
status = 0;
- vec[0] = mhbasename(postproc);
+ vec[0] = "spost";
closefds(3);
for (msgnum = 0; msgnum < nfiles; msgnum++) {
/*
** The back-end of the message sending back-end.
-** Annotate original message, and call `postproc' to send message.
+** Annotate original message, and call `spost' to send message.
*/
static int
sendaux(char **vec, int vecp, char *drft, struct stat *st)
char backup[BUFSIZ];
/*
- ** fd collects the output of postproc, and is used for the
+ ** fd collects the output of spost, and is used for the
** failure notice if we need to send one in alert().
*/
fd = pushsw ? tmp_fd() : NOTOK;
dup2(fd, fileno(stderr));
close(fd);
}
- execvp(postproc, vec);
+ execvp(*vec, vec);
fprintf(stderr, "unable to exec ");
- perror(postproc);
+ perror(*vec);
_exit(-1);
break; /* NOT REACHED */
}
} else {
/*
- ** If postproc failed, and we have good fd (which
+ ** If spost failed, and we have good fd (which
** means we pushed), then mail error message
** (and possibly the draft) back to the user.
*/
/*
** Mail error notification (and possibly a copy of the
-** message) back to the user, using the mailproc
+** message) back to the user, using mhmail(1).
*/
static void
alert(char *file, int out)
/* create subject for error notification */
snprintf(buf, sizeof(buf), "send failed on %s",
forwsw ? "enclosed draft" : file);
- execlp(mailproc, mhbasename(mailproc), getusername(),
+ execlp("mhmail", "mhmail", getusername(),
"-subject", buf, NULL);
fprintf(stderr, "unable to exec ");
- perror(mailproc);
+ perror("mhmail");
_exit(-1);
default: /* no waiting... */