Removed the `mhbuild' indirection via `buildmimeproc'.
authormarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 10:03:52 +0000 (11:03 +0100)
committermarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 10:03:52 +0000 (11:03 +0100)
We expect BINDIR to be in PATH if one executes mmh programs.

config/config.c
h/mh.h
man/mh-profile.man5
sbr/readconfig.c
uip/mhparam.c
uip/send.c

index e9b3f2b..e51397a 100644 (file)
@@ -112,11 +112,6 @@ char *mimetypequeryproc = "file -b --mime";
 */
 
 /*
 */
 
 /*
-** This is the program to process MIME composition files
-*/
-char *buildmimeproc = NMHBINDIR"/mhbuild";
-
-/*
 ** This program is usually called directly by users, but it is
 ** also invoked by the spost program to process an "Fcc", or by
 ** comp/repl/forw/dist to refile a draft message.
 ** This program is usually called directly by users, but it is
 ** also invoked by the spost program to process an "Fcc", or by
 ** comp/repl/forw/dist to refile a draft message.
diff --git a/h/mh.h b/h/mh.h
index 026f0dc..ced6c77 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -286,7 +286,6 @@ extern char *mailstore;      /* name of mail storage directory  */
 ** on any system.
 */
 extern char *attach_hdr;
 ** on any system.
 */
 extern char *attach_hdr;
-extern char *buildmimeproc;
 extern char *backup_prefix;
 extern char *altmsglink;
 extern char *components;
 extern char *backup_prefix;
 extern char *altmsglink;
 extern char *components;
index dc37bb9..b5e731a 100644 (file)
@@ -392,15 +392,6 @@ The profile can be used to select alternate programs if the
 user wishes.  The default values are given in the examples.
 .RE
 .PP
 user wishes.  The default values are given in the examples.
 .RE
 .PP
-.BR buildmimeproc :
-%bindir%/mhbuild
-.RS 5
-This is the program used by
-.B send
-to process MIME composition files, created from drafts which require
-MIME features.
-.RE
-.PP
 .BR fileproc :
 %bindir%/refile
 .RS 5
 .BR fileproc :
 %bindir%/refile
 .RS 5
index 048ae4b..daa2509 100644 (file)
@@ -22,7 +22,6 @@ static struct procstr procs[] = {
        { "backup-prefix", &backup_prefix },
        { "draft-folder",  &draftfolder },
        { "altmsg-link",   &altmsglink },
        { "backup-prefix", &backup_prefix },
        { "draft-folder",  &draftfolder },
        { "altmsg-link",   &altmsglink },
-       { "buildmimeproc", &buildmimeproc },
        { "fileproc",      &fileproc },
        { "incproc",       &incproc },
        { "lproc",         &lproc },
        { "fileproc",      &fileproc },
        { "incproc",       &incproc },
        { "lproc",         &lproc },
index 0f9c487..2d78cd9 100644 (file)
@@ -36,7 +36,6 @@ static struct proc procs [] = {
        { "attachment-header",  &attach_hdr },
        { "context",       &context },
        { "mh-sequences",  &mh_seq },
        { "attachment-header",  &attach_hdr },
        { "context",       &context },
        { "mh-sequences",  &mh_seq },
-       { "buildmimeproc", &buildmimeproc },
        { "editor",        &defaulteditor },
        { "fileproc",      &fileproc },
        { "foldprot",      &foldprot },
        { "editor",        &defaulteditor },
        { "fileproc",      &fileproc },
        { "foldprot",      &foldprot },
index 2ef1fe7..09bbcf8 100644 (file)
@@ -485,7 +485,7 @@ attach(char *draft_file_name)
                fclose(body_file);
 
                /* Add a mhbuild MIME composition file line for the body */
                fclose(body_file);
 
                /* Add a mhbuild MIME composition file line for the body */
-               /* charset will be discovered/guessed by buildmimeproc */
+               /* charset will be discovered/guessed by mhbuild */
                fprintf(composition_file, "#text/plain %s\n", body_file_name);
        }
 
                fprintf(composition_file, "#text/plain %s\n", body_file_name);
        }
 
@@ -512,11 +512,8 @@ attach(char *draft_file_name)
        }
        fclose(composition_file);
 
        }
        fclose(composition_file);
 
-       /*
-       ** We're ready to roll!  Run mhbuild on the composition file.
-       ** Note that mhbuild is in the context as buildmimeproc.
-       */
-       sprintf(buf, "%s %s", buildmimeproc, composition_file_name);
+       /* We're ready to roll! */
+       sprintf(buf, "mhbuild %s", composition_file_name);
        if (system(buf) != 0) {
                /* some problem */
                clean_up_temporary_files();
        if (system(buf) != 0) {
                /* some problem */
                clean_up_temporary_files();