char *defaulteditor = "vi";
/*
-** This is the delivery program called by send to actually
-** deliver mail to users. This is the interface to the MTS.
-*/
-char *postproc = NMHBINDIR"/spost";
-
-/*
** This program is called to remove a message by rmm or refile -nolink.
** It's usually empty, which means to rename the file to a backup name.
*/
extern char *nmhcache;
extern char *nmhprivcache;
extern char *nsequence;
-extern char *postproc;
extern char *profile;
extern char *psequence;
extern char *rcvdistcomps;
.RB [ \-form
.IR formfile ]
[switches\ for
-.IR postproc ]
+.BR spost ]
.I address1
\&...
.RB [ \-version ]
the command line given.
.RE
.PP
-.BR postproc :
-%bindir%/post
-.RS 5
-This is the program used by
-.BR send ,
-.BR mhmail ,
-.BR rcvdist ,
-and
-.B viamail
-(used by the
-.B sendfiles
-shell script) to
-post a message to the mail transport system.
-.RE
-.PP
.BR rmmproc :
none
.RS 5
.RB [ \-form
.IR formfile ]
[switches\ for
-.IR postproc ]
+.BR spost ]
.IR RECIPIENT ...
.RB [ \-version ]
.RB [ \-help ]
.fi
.RE
.PP
-By default,
.B rcvdist
uses the program
-.B post
+.B spost
to do the actual
-delivery of the message, although this can be changed by defining the
-.I postproc
-profile component.
+delivery of the message.
.SH FILES
.fc ^ ~
then the
corresponding \*(lqResent\-xxx\*(rq fields are examined instead.
.PP
-By default,
.B send
uses the program
-.B post
-to do the actual
-delivery of the messages, although this can be changed by defining the
-.I postproc
-profile component. Most of the features attributed to
+.B spost
+to do the actual delivery of the messages.
+Most of the features attributed to
.B send
are actually performed by
-.BR post .
+.BR spost .
.PP
The draft is scanned for attachment header fields.
Their name defaults to ``Attach'', but may be changed by the value of the
^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
-^postproc:~^Program to post the message
.fi
.SH "SEE ALSO"
-comp(1), dist(1), forw(1), repl(1), mh\-alias(5), post(8)
+comp(1), dist(1), forw(1), repl(1), mh\-alias(5), spost(8)
.SH DEFAULTS
.nf
^Path:~^To determine the user's mail storage
^Draft\-Folder:~^To find the default draft\-folder
^Aliasfile:~^For a default alias file
-^postproc:~^Program to post the message
.fi
.SH "SEE ALSO"
-mh\-alias(5), post(8)
+mh\-alias(5), spost(8)
.SH DEFAULTS
.nf
{ "altmsg-link", &altmsglink },
{ "fileproc", &fileproc },
{ "listproc", &listproc },
- { "postproc", &postproc },
{ "rmmproc", &rmmproc },
{ "sendmail", &sendmail },
{ "sendproc", &sendproc },
fclose(out);
nvec = 0;
- vec[nvec++] = mhbasename(postproc);
+ vec[nvec++] = "spost";
vec[nvec++] = tmpfil;
if (resent)
vec[nvec++] = "-dist";
adios(NULL, "unable to fork");
} else if (child_id) {
/* parent process */
- if ((status = pidXwait(child_id, postproc))) {
+ if ((status = pidXwait(child_id, *vec))) {
fprintf(stderr, "Letter saved in dead.letter\n");
execl("/bin/mv", "mv", tmpfil, "dead.letter", NULL);
execl("/usr/bin/mv", "mv", tmpfil, "dead.letter",
done(status ? 1 : 0);
} else {
/* child process */
- execvp(postproc, vec);
+ execvp(*vec, vec);
fprintf(stderr, "unable to exec ");
- perror(postproc);
+ perror(*vec);
_exit(-1);
}
{ "mimetypequeryproc", &mimetypequeryproc },
{ "msgprot", &msgprot },
{ "pager", &defaultpager },
- { "postproc", &postproc },
{ "rmmproc", &rmmproc },
{ "sendmail", &sendmail },
{ "sendproc", &sendproc },
continue;
case HELPSW:
- snprintf(buf, sizeof(buf), "%s [switches] [switches for postproc] address ...", invo_name);
+ snprintf(buf, sizeof(buf), "%s [switches] [switches for spost] address ...", invo_name);
print_help(buf, switches, 1);
done(1);
case VERSIONSW:
}
if (!addrs) {
- adios(NULL, "usage: %s [switches] [switches for postproc] address ...", invo_name);
+ adios(NULL, "usage: %s [switches] [switches for spost] address ...", invo_name);
}
umask(~m_gmprot());
done(1);
}
- vec[0] = mhbasename(postproc);
+ vec[0] = "spost";
vec[vecp++] = "-dist";
vec[vecp++] = drft;
vec[vecp] = NULL;
- execvp(postproc, vec);
+ execvp(*vec, vec);
fprintf(stderr, "unable to exec ");
- perror(postproc);
+ perror(*vec);
_exit(1);
return 0; /* dead code to satisfy the compiler */
}
push();
}
status = 0;
- vec[0] = mhbasename(postproc);
+ vec[0] = "spost";
closefds(3);
for (msgnum = 0; msgnum < nfiles; msgnum++) {
/*
** The back-end of the message sending back-end.
-** Annotate original message, and call `postproc' to send message.
+** Annotate original message, and call `spost' to send message.
*/
static int
sendaux(char **vec, int vecp, char *drft, struct stat *st)
char backup[BUFSIZ];
/*
- ** fd collects the output of postproc, and is used for the
+ ** fd collects the output of spost, and is used for the
** failure notice if we need to send one in alert().
*/
fd = pushsw ? tmp_fd() : NOTOK;
dup2(fd, fileno(stderr));
close(fd);
}
- execvp(postproc, vec);
+ execvp(*vec, vec);
fprintf(stderr, "unable to exec ");
- perror(postproc);
+ perror(*vec);
_exit(-1);
break; /* NOT REACHED */
}
} else {
/*
- ** If postproc failed, and we have good fd (which
+ ** If spost failed, and we have good fd (which
** means we pushed), then mail error message
** (and possibly the draft) back to the user.
*/