show: Special-cased -show(mime)proc for mhshow: it needs msgs not file args.
[mmh] / uip / mhlsbr.c
index 786178d..5625fa1 100644 (file)
@@ -68,9 +68,9 @@ static struct swit mhlswitches[] = {
 #define HELPSW  12
        { "help", 0 },
 #define FORW1SW  13
-       { "forward", -7 },  /* interface from forw */
+       { "forward", -7 },
 #define FORW2SW  14
-       { "forwall", -7 },  /* interface from forw */
+       { "forwall", -7 },
 #define DGSTSW  15
        { "digest list", -6 },
 #define VOLUMSW  16
@@ -224,8 +224,8 @@ static char *ignores[MAXARGS];
 static  jmp_buf env;
 static  jmp_buf mhlenv;
 
-static char delim3[] = /* from forw.c */
-       "\n----------------------------------------------------------------------\n\n";
+static char delim3[] =
+"\n----------------------------------------------------------------------\n\n";
 static char delim4[] = "\n------------------------------\n\n";
 
 static FILE *(*mhl_action) () = (FILE *(*) ()) 0;
@@ -659,7 +659,9 @@ evalvar(struct mcomp *c1)
 
                if (ptos(name, &cp))
                        return 1;
-               nfs = new_fs(NULL, NULL, cp);
+               cp = concat("=", cp, NULL);
+               nfs = new_fs(cp, NULL);
+               free(cp);
                c1->c_nfs = getcpy(nfs);
                c1->c_flags |= FORMAT;
                return 0;
@@ -668,7 +670,7 @@ evalvar(struct mcomp *c1)
        if (!mh_strcasecmp(name, "decode")) {
                char *nfs;
 
-               nfs = new_fs(NULL, NULL, "%(decode{text})");
+               nfs = new_fs("=%(decode{text})", NULL);
                c1->c_nfs = getcpy(nfs);
                c1->c_flags |= FORMAT;
                return 0;