From: Ken Hornstein Date: Thu, 23 Jan 2014 05:32:18 +0000 (-0500) Subject: Remove automimeproc functionality; it's redundant now. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/0b889898d663285e10c0f5ea18feac55e56fa60f?ds=sidebyside;hp=-c Remove automimeproc functionality; it's redundant now. --- 0b889898d663285e10c0f5ea18feac55e56fa60f diff --git a/man/forw.man b/man/forw.man index 2b73408a..414f9d7d 100644 --- a/man/forw.man +++ b/man/forw.man @@ -275,18 +275,7 @@ composition file. Note that .B nmh will not invoke .B mhbuild -automatically, unless you -add this line to your -.I \&.mh\(ruprofile -file: -.PP -.RS 5 -.nf -automimeproc: 1 -.fi -.RE -.PP -Otherwise, you must specifically give the command +automatically; you must specifically give the command .PP .RS 5 .nf diff --git a/man/mh-profile.man b/man/mh-profile.man index 9f0190f5..284d8c57 100644 --- a/man/mh-profile.man +++ b/man/mh-profile.man @@ -156,16 +156,6 @@ EDITOR environment variables. (profile, default: vi) .RE .PP -.BR automimeproc : -.RS 5 -If defined and set to 1, then the -.B whatnow -program will automatically -invoke the buildmimeproc (discussed below) to process each message as a MIME -composition draft before it is sent. -(profile, no default) -.RE -.PP .BR Msg\-Protect : 600 .RS 5 diff --git a/man/mhbuild.man b/man/mhbuild.man index 426795bf..abd9dcbc 100644 --- a/man/mhbuild.man +++ b/man/mhbuild.man @@ -555,20 +555,6 @@ switch will cause .B mhbuild to exit without error if the input file already has valid MIME headers. .PP -It is also possible to have the -.B whatnow -program invoke -.B mhbuild -automatically when a message is sent. To do this, you must add the line -.PP -.RS 5 -automimeproc: 1 -.RE -.PP -to your -.I \&.mh\(ruprofile -file. -.PP Finally, you should consider adding this line to your profile: .PP .RS 5 diff --git a/man/repl.man b/man/repl.man index c1cac4bf..245d45ae 100644 --- a/man/repl.man +++ b/man/repl.man @@ -350,16 +350,7 @@ Note that .B nmh will not invoke .B mhbuild -automatically, unless you -add this line to your -.I \&.mh\(ruprofile -file: -.PP -.RS 5 -automimeproc: 1 -.RE -.PP -Otherwise, you must specifically give the command +automatically; you must specifically give the command .PP .RS 5 What now? mime diff --git a/man/whatnow.man b/man/whatnow.man index 3d5806bf..c1f735b9 100644 --- a/man/whatnow.man +++ b/man/whatnow.man @@ -225,9 +225,6 @@ commands for managing MIME attachments. ^Editor:~^To override the default editor ^\-next:~^To name an editor to be used after exit ^~^from -^automimeproc:~^If value is 1, and the draft is a MIME -^~^composition file, then automatically call -^~^buildmimeproc prior to sending. ^buildmimeproc:~^Program to translate MIME composition files ^fileproc:~^Program to refile the message ^lproc:~^Program to list the contents of a message diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index e67ad53a..6149c125 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -803,19 +803,6 @@ sendfile (char **arg, char *file, int pushsw) int i, vecp; char *cp, *sp, **vec, *program; - /* Translate MIME composition file, if necessary */ - if ((cp = context_find ("automimeproc")) - && (!strcmp (cp, "1")) - && check_draft (file) - && (buildfile (NULL, file) == NOTOK)) - return 0; - - /* For backwards compatibility */ - if ((cp = context_find ("automhnproc")) - && check_draft (file) - && (i = editfile (&cp, NULL, file, NOUSE, NULL, NULL, NULL, 0, 0))) - return 0; - /* * If the sendproc is the nmh command `send', then we call * those routines directly rather than exec'ing the command.