]> git.marmaro.de Git - mmh/commitdiff
Defined show(mime)proc locally and removed their profile entries.
authormarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 12:09:14 +0000 (13:09 +0100)
committermarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 12:09:14 +0000 (13:09 +0100)
Their paths are relative now, too.

config/config.c
h/mh.h
man/mh-profile.man5
man/next.man1
man/prev.man1
man/show.man1
sbr/readconfig.c
uip/mhparam.c
uip/show.c

index fa0b0fc44a291d62e99ad14f6cdc9209cc75b7c2..e650b0d2b045cb7985aec056ae8682ad7ebc774f 100644 (file)
@@ -163,20 +163,6 @@ char *rmmproc = NULL;
  */
 char *sendproc = NMHBINDIR"/send";
 
-/*
-** This is the path to the program used by "show"
-** to display non-text (MIME) messages.
-*/
-char *showmimeproc = NMHBINDIR"/mhshow";
-
-/*
-** This is the default program called by "show" to filter
-** and display standard text (non-MIME) messages.  It can be
-** changed to a pager (such as "more" or "less") if you prefer
-** that such message not be filtered in any way.
-*/
-char *showproc = NMHBINDIR"/mhl";
-
 /*
 ** This is the program (mhl) used to filter messages.  It is
 ** used by mhshow to filter and display the message headers of
diff --git a/h/mh.h b/h/mh.h
index dd049d3216ccc28654f6ab91ab9e0ab3f39d1788..44363b61fef9ebc4804151250b4ea31a1bc81ee6 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -335,8 +335,6 @@ extern char *seq_next;
 extern char *seq_prev;
 extern char *seq_unseen;
 extern char *seq_neg;
-extern char *showmimeproc;
-extern char *showproc;
 extern char *usequence;
 extern char *version_num;
 extern char *version_str;
index 3f38e1072d5979cbec4763f45efdc6516cad657d..d3e6e31c34bcc15d87caf30806a751a89ad0a865 100644 (file)
@@ -492,22 +492,6 @@ This is the program to use by
 to actually send the message
 .RE
 .PP
-.BR showmimeproc :
-%bindir%/mhshow
-.RS 5
-This is the program used by
-.B show
-to process and display non-text (MIME) messages.
-.RE
-.PP
-.BR showproc :
-%bindir%/mhl
-.RS 5
-This is the program used by
-.B show
-to filter and display text (non-MIME) messages.
-.RE
-.PP
 .BR whatnowproc :
 %bindir%/whatnow
 .RS 5
index c32689a006add3e80445a4b12bfad769f98e1c61..2b44d9fe8812a0f90fb9ab5506aee9a4a340f76c 100644 (file)
@@ -57,12 +57,10 @@ details.
 .ta \w'ExtraBigProfileName  'u
 ^Path:~^To determine the user's mail storage
 ^Current\-Folder:~^To find the default current folder
-^showproc:~^Program to show non-MIME messages
-^showmimeproc:~^Program to show MIME messages
 .fi
 
 .SH "SEE ALSO"
-show(1), prev(1)
+show(1), prev(1), mhshow(1)
 
 .SH DEFAULTS
 .nf
index 7cdb8e43f68815eb6f48666d5fae45510c670d4f..06464d43d3b58432215ab4f9dd298b9edefac3a6 100644 (file)
@@ -55,12 +55,10 @@ for all the details.
 .ta \w'ExtraBigProfileName  'u
 ^Path:~^To determine the user's mail storage
 ^Current\-Folder:~^To find the default current folder
-^showproc:~^Program to show non-MIME messages
-^showmimeproc:~^Program to show MIME messages
 .fi
 
 .SH "SEE ALSO"
-show(1), next(1)
+show(1), next(1), mhshow(1)
 
 .SH DEFAULTS
 .nf
index 47cf7d00f9ca61ecbb47e7e48e2538e7cef9e5fc..047baf5cd1dc78230193ca8ad21bc03029c5b0d3 100644 (file)
@@ -39,14 +39,10 @@ the format of the displayed messages and which headers fields are
 shown.  See the
 .BR mhl (1)
 manual page for the details about this
-command.  This default can be changed by defining the
-.I showproc
-profile component.  Any switches not recognized by
+command.  Any switches not recognized by
 .B show
 are
-passed along to that program.  To override the default and the
-.I showproc
-profile component, use the
+passed along to that program.  To override the default, use the
 .B \-showproc
 .I program
 switch.  For example,
@@ -54,11 +50,7 @@ switch.  For example,
 .I more
 will cause the
 .B more
-program to list the messages with no reformatting.  Normally, this
-program is specified as the
-.I showproc
-in the user's profile,
-rather than using a command line switch.
+program to list the messages with no reformatting.
 .PP
 By default, non-text messages (MIME messages with multi-media
 contents) are processed and displayed by the
@@ -68,15 +60,12 @@ command
 See the
 .BR mhshow (1)
 manual page for details
-about this command.  This default can changed by defining the
-.I showmimeproc
-profile component.  Any switches not recognized
+about this command.
+Any switches not recognized
 by
 .B show
 are passed along to that program.  To override this
-default and the
-.B showmimeproc
-profile component, use the
+default, use the
 .B \-showmimeproc
 .I program
 switch.
@@ -105,10 +94,10 @@ The option
 .B show
 to
 test if any of the messages to be displayed are non-text (MIME)
-messages.  If any are non-text, they are displayed by the program
+messages.  If any are non-text, they are displayed by the
 .IR showmimeproc ,
-else they are displayed by the program
-.IR showproc .
+else they are displayed by the
+.BR showproc .
 The option
 .B \-nocheckmime
 disables this test and instructs
@@ -163,8 +152,6 @@ from each sequence named by the profile entry.
 ^Path:~^To determine the user's mail storage
 ^Current\-Folder:~^To find the default current folder
 ^Unseen\-Sequence:~^To name sequences denoting unseen messages
-^showproc:~^Program to show text (non-MIME) messages
-^showmimeproc:~^Program to show non-text (MIME) messages
 .fi
 
 .SH "SEE ALSO"
index d41873118897d3112be318a16b045a7b44463dd7..16659a99308c440cab87c3b26db8394c0f4ebab4 100644 (file)
@@ -30,8 +30,6 @@ static struct procstr procs[] = {
        { "rmmproc",       &rmmproc },
        { "sendmail",      &sendmail },
        { "sendproc",      &sendproc },
-       { "showmimeproc",  &showmimeproc },
-       { "showproc",      &showproc },
        { "whatnowproc",   &whatnowproc },
        { NULL, NULL }
 };
index 64ee5d77a7b878973b68c643f6c70c079bc6ae14..4cad041bb91cea48c89127373c71963a849bac43 100644 (file)
@@ -49,8 +49,6 @@ static struct proc procs [] = {
        { "rmmproc",       &rmmproc },
        { "sendmail",      &sendmail },
        { "sendproc",      &sendproc },
-       { "showmimeproc",  &showmimeproc },
-       { "showproc",      &showproc },
        { "version",       &version_num },
        { "whatnowproc",   &whatnowproc },
        { "etcdir",        &mhetcdir },
index 2b53141a80d919e05b0ef15f64093fac6fdc25e3..4abc3d74cf93a62a3b5856b1c55a3006d1c1a7e3 100644 (file)
@@ -43,6 +43,8 @@ static int is_nontext(char *);
 #define NEXT  1
 #define PREV  2
 
+char *showproc = "mhl";
+char *showmimeproc = "mhshow";
 
 int
 main(int argc, char **argv)