snprintf(buf, sizeof(buf), "send failed on %s",
forwsw ? "enclosed draft" : file);
- execlp(mailproc, r1bindex(mailproc, '/'),
+ execlp(mailproc, mhbasename(mailproc),
getusername(), "-subject", buf, NULL);
fprintf(stderr, "unable to exec ");
perror(mailproc);