#include <h/mh.h>
#include <fcntl.h>
#include <h/aliasbr.h>
-#include <h/mts.h>
#include <h/utils.h>
#include <grp.h>
#include <pwd.h>
if (context_foil(NULL) == -1)
done(1);
- mts_init(invo_name);
arguments = getarguments(invo_name, argc, argv, 0);
argp = arguments;
{
register int i;
- if (mmdfldir && *mmdfldir)
- mdrop(mmdfldir);
- if (uucpldir && *uucpldir)
- mdrop(uucpldir);
+ mdrop(mailspool);
for (i = 0; dirs[i]; i++)
mdrop(dirs[i]);
}
dup2(fd, 1);
close(fd);
}
- execlp(mailproc, mhbasename(mailproc),
+ execlp("mhmail", "mhmail",
mail, "-subject", invo_name,
NULL);
- adios(mailproc, "unable to exec ");
+ adios("mhmail", "unable to exec ");
default:
close(pd[0]);