X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4e3c586d24d33c0d0f6b1f16a84cf9b1a08076d7..84932d0a96c79bfb2f0384ebab806dc51a35f600:/uip/whatnowsbr.c diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 712ea7bb..bb0ac14d 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -816,7 +816,7 @@ sendfile (char **arg, char *file, int pushsw) { pid_t child_id; int i, vecp; - char *cp, *sp, *vec[MAXARGS]; + char *cp, *sp, **vec, *program; /* Translate MIME composition file, if necessary */ if ((cp = context_find ("automimeproc")) @@ -851,7 +851,7 @@ sendfile (char **arg, char *file, int pushsw) case NOTOK: advise (NULL, "unable to fork, so sending directly..."); case OK: - vecp = 0; + vec = argsplit(sendproc, &program, &vecp); vec[vecp++] = invo_name; if (pushsw) vec[vecp++] = "-push"; @@ -861,7 +861,7 @@ sendfile (char **arg, char *file, int pushsw) vec[vecp++] = file; vec[vecp] = NULL; - execvp (sendproc, vec); + execvp (program, vec); fprintf (stderr, "unable to exec "); perror (sendproc); _exit (-1); @@ -1013,10 +1013,6 @@ check_draft (char *msgnam) X("help", 0, SHELPSW) \ X("dashstuffing", -12, BITSTUFFSW) \ X("nodashstuffing", -14, NBITSTUFFSW) \ - X("mail", -4, MAILSW) \ - X("saml", -4, SAMLSW) \ - X("send", -4, SSNDSW) \ - X("soml", -4, SOMLSW) \ X("client host", -6, CLIESW) \ X("server host", 6, SERVSW) \ X("snoop", -5, SNOOPSW) \ @@ -1202,10 +1198,6 @@ sendit (char *sp, char **arg, char *file, int pushed) case NMSGDSW: case WATCSW: case NWATCSW: - case MAILSW: - case SAMLSW: - case SSNDSW: - case SOMLSW: case SNOOPSW: case SASLSW: case NOSASLSW: @@ -1332,7 +1324,7 @@ whomfile (char **arg, char *file) { pid_t pid; int vecp; - char *vec[MAXARGS]; + char **vec, *program; context_save (); /* save the context file */ fflush (stdout); @@ -1343,7 +1335,7 @@ whomfile (char **arg, char *file) return 1; case OK: - vecp = 0; + vec = argsplit(whomproc, &program, &vecp); vec[vecp++] = r1bindex (whomproc, '/'); vec[vecp++] = file; if (arg) @@ -1351,7 +1343,7 @@ whomfile (char **arg, char *file) vec[vecp++] = *arg++; vec[vecp] = NULL; - execvp (whomproc, vec); + execvp (program, vec); fprintf (stderr, "unable to exec "); perror (whomproc); _exit (-1); /* NOTREACHED */