X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsend.c;h=51661a5284504091d13551f7ff1fce566f8c0b25;hp=09bbcf80d3be08683dada94a2b834f297c38399c;hb=5b92ee6942b9b466914f5faa5fa4c00a2ebc6d35;hpb=dfa0332c4e6144699dedd5c9795219adc0f9c0d2 diff --git a/uip/send.c b/uip/send.c index 09bbcf8..51661a5 100644 --- a/uip/send.c +++ b/uip/send.c @@ -691,7 +691,7 @@ sendaux(char **vec, int vecp, char *drft, struct stat *st) /* ** 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) @@ -735,10 +735,10 @@ 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... */