From 068380df11432a5341882e658ec9cf5c0b54721d Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Thu, 22 Mar 2012 11:03:52 +0100 Subject: [PATCH] Removed the `mhbuild' indirection via `buildmimeproc'. We expect BINDIR to be in PATH if one executes mmh programs. --- config/config.c | 5 ----- h/mh.h | 1 - man/mh-profile.man5 | 9 --------- sbr/readconfig.c | 1 - uip/mhparam.c | 1 - uip/send.c | 9 +++------ 6 files changed, 3 insertions(+), 23 deletions(-) diff --git a/config/config.c b/config/config.c index e9b3f2b..e51397a 100644 --- a/config/config.c +++ b/config/config.c @@ -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. diff --git a/h/mh.h b/h/mh.h index 026f0dc..ced6c77 100644 --- 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; -extern char *buildmimeproc; extern char *backup_prefix; extern char *altmsglink; extern char *components; diff --git a/man/mh-profile.man5 b/man/mh-profile.man5 index dc37bb9..b5e731a 100644 --- a/man/mh-profile.man5 +++ b/man/mh-profile.man5 @@ -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 -.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 diff --git a/sbr/readconfig.c b/sbr/readconfig.c index 048ae4b..daa2509 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -22,7 +22,6 @@ static struct procstr procs[] = { { "backup-prefix", &backup_prefix }, { "draft-folder", &draftfolder }, { "altmsg-link", &altmsglink }, - { "buildmimeproc", &buildmimeproc }, { "fileproc", &fileproc }, { "incproc", &incproc }, { "lproc", &lproc }, diff --git a/uip/mhparam.c b/uip/mhparam.c index 0f9c487..2d78cd9 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -36,7 +36,6 @@ static struct proc procs [] = { { "attachment-header", &attach_hdr }, { "context", &context }, { "mh-sequences", &mh_seq }, - { "buildmimeproc", &buildmimeproc }, { "editor", &defaulteditor }, { "fileproc", &fileproc }, { "foldprot", &foldprot }, diff --git a/uip/send.c b/uip/send.c index 2ef1fe7..09bbcf8 100644 --- a/uip/send.c +++ b/uip/send.c @@ -485,7 +485,7 @@ attach(char *draft_file_name) 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); } @@ -512,11 +512,8 @@ attach(char *draft_file_name) } 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(); -- 1.7.10.4