char *listproc = "show -file";
/*
-** This is the path for the Bell equivalent mail program.
-*/
-char *mailproc = "mhmail";
-
-/*
** This is used by mhl as a front-end. It is also used
** by mhshow as the default method of displaying message bodies
** or message parts of type text/plain.
extern char *inbox;
extern char *listproc;
extern char *mhetcdir;
-extern char *mailproc;
extern char *mailspool;
extern char *mh_seq;
extern char *mhlformat;
the command line given.
.RE
.PP
-.BR mailproc :
-mhmail
-.RS 5
-This is the program used to automatically mail various messages
-and notifications. It is used by
-.B conflict
-when using the
-.B \-mail
-option. It is used by
-.B send
-to post failure notices.
-It is used to retrieve an external-body with access-type `mail-server'
-(such as when storing the body with
-.BR mhstore ).
-.RE
-.PP
.BR postproc :
%bindir%/post
.RS 5
terminal and perform its actions in the background. If
.BR push 'd
and the draft can't be sent, then an error message will be sent (using
-the mailproc) back to the user. If
+.BR mhmail )
+back to the user. If
.B \-forward
is given, then a copy
of the draft will be attached to this failure notice. Using
^Aliasfile:~^For a default alias file
^Signature:~^To determine the user's mail signature
^Attachment\-Header:~^To set the name of the attachment header field
-^mailproc:~^Program to post failure notices
^postproc:~^Program to post the message
.fi
{ "altmsg-link", &altmsglink },
{ "fileproc", &fileproc },
{ "listproc", &listproc },
- { "mailproc", &mailproc },
{ "postproc", &postproc },
{ "rmmproc", &rmmproc },
{ "sendmail", &sendmail },
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]);
{ "fileproc", &fileproc },
{ "foldprot", &foldprot },
{ "listproc", &listproc },
- { "mailproc", &mailproc },
{ "mimetypequeryproc", &mimetypequeryproc },
{ "msgprot", &msgprot },
{ "pager", &defaultpager },
return NOTOK;
vecp = 0;
- vec[vecp++] = mhbasename(mailproc);
+ vec[vecp++] = "mhmail";
vec[vecp++] = e->eb_server;
vec[vecp++] = "-subject";
vec[vecp++] = e->eb_subject ? e->eb_subject : "mail-server request";
return NOTOK;
case OK:
- execvp(mailproc, vec);
+ execvp(*vec, vec);
fprintf(stderr, "unable to exec ");
- perror(mailproc);
+ perror(*vec);
_exit(-1);
/* NOTREACHED */
/*
** 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)
/* 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... */