projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Call spost directly, not via postproc. Remove the postproc profile entry.
[mmh]
/
uip
/
send.c
diff --git
a/uip/send.c
b/uip/send.c
index
51661a5
..
d87e211
100644
(file)
--- a/
uip/send.c
+++ b/
uip/send.c
@@
-276,7
+276,7
@@
main(int argc, char **argv)
push();
}
status = 0;
push();
}
status = 0;
- vec[0] = mhbasename(postproc);
+ vec[0] = "spost";
closefds(3);
for (msgnum = 0; msgnum < nfiles; msgnum++) {
closefds(3);
for (msgnum = 0; msgnum < nfiles; msgnum++) {
@@
-611,7
+611,7
@@
make_mime_composition_file_entry(char *file_name)
/*
** The back-end of the message sending back-end.
/*
** 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)
*/
static int
sendaux(char **vec, int vecp, char *drft, struct stat *st)
@@
-621,7
+621,7
@@
sendaux(char **vec, int vecp, char *drft, struct stat *st)
char backup[BUFSIZ];
/*
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;
** failure notice if we need to send one in alert().
*/
fd = pushsw ? tmp_fd() : NOTOK;
@@
-650,9
+650,9
@@
sendaux(char **vec, int vecp, char *drft, struct stat *st)
dup2(fd, fileno(stderr));
close(fd);
}
dup2(fd, fileno(stderr));
close(fd);
}
- execvp(postproc, vec);
+ execvp(*vec, vec);
fprintf(stderr, "unable to exec ");
fprintf(stderr, "unable to exec ");
- perror(postproc);
+ perror(*vec);
_exit(-1);
break; /* NOT REACHED */
_exit(-1);
break; /* NOT REACHED */
@@
-664,7
+664,7
@@
sendaux(char **vec, int vecp, char *drft, struct stat *st)
}
} else {
/*
}
} 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.
*/
** means we pushed), then mail error message
** (and possibly the draft) back to the user.
*/