Added default_content_type argument to
[mmh] / uip / show.c
index 60f1e62..0b143fd 100644 (file)
@@ -40,9 +40,13 @@ static struct swit switches[] = {
     { "draft", 0 },
 #define        FILESW              13
     { "file file", -4 },               /* interface from showfile */
-#define VERSIONSW           14
+#define FMTPROCSW           14
+    { "fmtproc program", 0 },
+#define NFMTPROCSW          15
+    { "nofmtproc", 0 },
+#define VERSIONSW           16
     { "version", 0 },
-#define        HELPSW              15
+#define        HELPSW              17
     { "help", 0 },
     { NULL, 0 }
 };
@@ -92,6 +96,7 @@ main (int argc, char **argv)
                    done (1);
                case UNKWNSW: 
                case NPROGSW:
+               case NFMTPROCSW:
                    vec[vecp++] = --cp;
                    continue;
 
@@ -100,10 +105,10 @@ main (int argc, char **argv)
                        "%s [+folder] %s[switches] [switches for showproc]",
                        invo_name, mode == SHOW ? "[msgs] ": "");
                    print_help (buf, switches, 1);
-                   done (1);
+                   done (0);
                case VERSIONSW:
                    print_version(invo_name);
-                   done (1);
+                   done (0);
 
                case DRFTSW: 
                    if (file)
@@ -142,6 +147,7 @@ usage:
                case PROGSW:
                case LENSW:
                case WIDTHSW:
+               case FMTPROCSW:
                    vec[vecp++] = --cp;
                    if (!(cp = *argp++) || *cp == '-')
                        adios (NULL, "missing argument to %s", argp[-2]);
@@ -278,7 +284,7 @@ go_to_it: ;
        proc = catproc;
     } else {
        /* check if any messages are non-text MIME messages */
-       if (checkmime && !getenv ("NOMHNPROC")) {
+       if (checkmime) {
            if (!draftsw && !file) {
                /* loop through selected messages and check for MIME */
                for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++)