]> git.marmaro.de Git - mmh/commitdiff
Hardcoded mhmail instead of mailproc.
authormarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 12:23:44 +0000 (13:23 +0100)
committermarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 12:23:44 +0000 (13:23 +0100)
config/config.c
h/mh.h
man/mh-profile.man5
man/send.man1
sbr/readconfig.c
uip/conflict.c
uip/mhparam.c
uip/mhparse.c
uip/send.c

index f0187adb25ca01e180056cf3615885dd4e81000d..bd83bcb36da4eae0bf5910972482673a4632f125 100644 (file)
@@ -126,11 +126,6 @@ char *fileproc = NMHBINDIR"/refile";
 */
 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
diff --git a/h/mh.h b/h/mh.h
index 5ebda8ea684773776718b9c95d8c4e7c69929119..0e3324c4f204fa5a5ef70d2dff3e9ab1dcc0358f 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -303,7 +303,6 @@ extern char *forwcomps;
 extern char *inbox;
 extern char *listproc;
 extern char *mhetcdir;
-extern char *mailproc;
 extern char *mailspool;
 extern char *mh_seq;
 extern char *mhlformat;
index 773dc8a538963de4459f4e2bf0d1be1cc0e95ce6..47b5d3f607f8cd62fae6bee951d98946f2cfbc43 100644 (file)
@@ -425,22 +425,6 @@ The absolute pathname of the message to list will be appended to
 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
index bb81ddb64971d2ff6996f562c442629e5b18e050..66f37ceaa0f42aa79de3a56d6de7d735f6224cbc 100644 (file)
@@ -79,7 +79,8 @@ will detach itself from the user's
 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
@@ -204,7 +205,6 @@ for more information.
 ^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
 
index 71fff7adb301261e2fefc088f65a0d87c1b26b22..f8813cbaba9f2f07c6b35a1a51d2fb63b2ae810c 100644 (file)
@@ -24,7 +24,6 @@ static struct procstr procs[] = {
        { "altmsg-link",   &altmsglink },
        { "fileproc",      &fileproc },
        { "listproc",      &listproc },
-       { "mailproc",      &mailproc },
        { "postproc",      &postproc },
        { "rmmproc",       &rmmproc },
        { "sendmail",      &sendmail },
index 0d9c78c4a1ca1c7497cdb7b183adaff7f0dde5dd..3670e8e73cd5d29dcb548944865f72919779e580 100644 (file)
@@ -352,10 +352,10 @@ setup(void)
                                        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]);
index 7c4366912fbd94a614f8ce6fd1462da6584369de..38fc644861ab5fd96f0af4429109cd736776500a 100644 (file)
@@ -40,7 +40,6 @@ static struct proc procs [] = {
        { "fileproc",      &fileproc },
        { "foldprot",      &foldprot },
        { "listproc",      &listproc },
-       { "mailproc",      &mailproc },
        { "mimetypequeryproc", &mimetypequeryproc },
        { "msgprot",       &msgprot },
        { "pager",         &defaultpager },
index b3b07e48cd859baa03b1ed65f875b1606470de26..ece4e8fe6dfae7ad84588b3d39dd92548552b461 100644 (file)
@@ -2724,7 +2724,7 @@ openMail(CT ct, char **file)
                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";
@@ -2738,9 +2738,9 @@ openMail(CT ct, char **file)
                return NOTOK;
 
        case OK:
-               execvp(mailproc, vec);
+               execvp(*vec, vec);
                fprintf(stderr, "unable to exec ");
-               perror(mailproc);
+               perror(*vec);
                _exit(-1);
                /* NOTREACHED */
 
index 09bbcf80d3be08683dada94a2b834f297c38399c..51661a5284504091d13551f7ff1fce566f8c0b25 100644 (file)
@@ -691,7 +691,7 @@ sendaux(char **vec, int vecp, char *drft, struct stat *st)
 
 /*
 ** 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)
@@ -735,10 +735,10 @@ 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... */