char *sendproc = NMHBINDIR"/send";
/*
-** This is the program (mhl) used to filter messages. It is
-** used by mhshow to filter and display the message headers of
-** MIME messages. It is used by repl (with -filter)
-** to filter the message to which you are replying.
-** It is used by send/spost (with -filter) to filter the message
-** for "Bcc:" recipients.
-*/
-char *mhlproc = NMHBINDIR"/mhl";
-
-/*
** This program is called after comp, et. al., have built a draft
*/
char *whatnowproc = NMHBINDIR"/whatnow";
; mhl.headers
;
; Default format file for displaying headers in
-; MIME messages. mhshow calls the mhlproc with this
+; MIME messages. mhshow calls mhl with this
; filter to display message header.
;
overflowtext="***",overflowoffset=5
extern char *mailspool;
extern char *mh_seq;
extern char *mhlformat;
-extern char *mhlproc;
extern char *mhlreply;
extern char *mimetypequery;
extern char *mimetypequeryproc;
^Editor:~^To override the default editor
^Msg\-Protect:~^To set mode when creating a new message (draft)
^fileproc:~^Program to refile the message
-^mhlproc:~^Program to filter messages being forwarded
^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
.fi
.BR mhstore ).
.RE
.PP
-.BR mhlproc :
-%bindir%/mhl
-.RS 5
-This is the program used to filter messages in various ways. It
-is used by
-.B mhshow
-to filter and display the message headers
-of MIME messages.
-Unless the
-.B \-nofilter
-option is used with
-.BR repl ,
-the
-.I mhlproc
-is used to filter the
-message to which you are replying.
-.RE
-.PP
.BR postproc :
%bindir%/post
.RS 5
% mhparam path
Mail
-% mhparam mhlproc
-mhl
+% mhparam editor
+vi
% mhparam \-component path
Path: Mail
will attempt to verify the
integrity of the content.
.SS "Showing the Contents"
-The headers of each message are displayed with the
-.I mhlproc
-(usually
-.BR mhl ),
+The headers of each message are displayed with
+.B mhl
using the standard format file
.IR mhl.headers .
You may specify an alternate format file with the
^Path:~^To determine the user's mail storage
^Current\-Folder:~^To find the default current folder
^Unseen\-Sequence:~^To name sequences denoting unseen messages
-^mhlproc:~^Default program to display message headers
^nmh-access-ftp:~^Program to retrieve contents via FTP
^nmh-cache~^Public directory to store cached external contents
^nmh-private-cache~^Personal directory to store cached external contents
^Editor:~^To override the default editor
^Msg\-Protect:~^To set mode when creating a new message (draft)
^fileproc:~^Program to refile the message
-^mhlproc:~^Program to filter message being replied\-to
^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
.fi
{ "fileproc", &fileproc },
{ "listproc", &listproc },
{ "mailproc", &mailproc },
- { "mhlproc", &mhlproc },
{ "postproc", &postproc },
{ "rmmproc", &rmmproc },
{ "sendmail", &sendmail },
{ "foldprot", &foldprot },
{ "listproc", &listproc },
{ "mailproc", &mailproc },
- { "mhlproc", &mhlproc },
{ "mimetypequeryproc", &mimetypequeryproc },
{ "msgprot", &msgprot },
{ "pager", &defaultpager },
/*
-** Use the mhlproc to show the header fields
+** Use mhl to show the header fields
*/
-
static void
DisplayMsgHeader(CT ct, char *form)
{
char *vec[8];
vecp = 0;
- vec[vecp++] = mhbasename(mhlproc);
+ vec[vecp++] = "mhl";
vec[vecp++] = "-form";
vec[vecp++] = form;
vec[vecp++] = "-nobody";
/* NOTREACHED */
case OK:
- execvp(mhlproc, vec);
+ execvp("mhl", vec);
fprintf(stderr, "unable to exec ");
- perror(mhlproc);
+ perror("mhl");
_exit(-1);
/* NOTREACHED */
/*
-** Call the mhlproc
+** Call mhl
**
** This function expects that argument out has been fflushed by the caller.
*/
-
static void
replfilter(FILE *in, FILE *out, char *filter)
{
int pid;
- char *mhl;
char *errstr;
if (filter == NULL)
if (access(filter, R_OK) == NOTOK)
adios(filter, "unable to read");
- mhl = mhbasename(mhlproc);
-
rewind(in);
lseek(fileno(in), (off_t) 0, SEEK_SET);
dup2(fileno(out), fileno(stdout));
closefds(3);
- execlp(mhlproc, mhl, "-form", filter, NULL);
+ execlp("mhl", "mhl", "-form", filter, NULL);
errstr = strerror(errno);
- write(2, "unable to exec ", 15);
- write(2, mhlproc, strlen(mhlproc));
- write(2, ": ", 2);
+ write(2, "unable to exec mhl: ", 20);
write(2, errstr, strlen(errstr));
write(2, "\n", 1);
_exit(-1);
default:
- if (pidXwait(pid, mhl))
+ if (pidXwait(pid, "mhl"))
done(1);
fseek(out, 0L, SEEK_END);
break;