show: Special-cased -show(mime)proc for mhshow: it needs msgs not file args.
[mmh] / uip / mhlsbr.c
index 218d38d..5625fa1 100644 (file)
@@ -659,7 +659,9 @@ evalvar(struct mcomp *c1)
 
                if (ptos(name, &cp))
                        return 1;
-               nfs = new_fs(NULL, 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, NULL, "%(decode{text})");
+               nfs = new_fs("=%(decode{text})", NULL);
                c1->c_nfs = getcpy(nfs);
                c1->c_flags |= FORMAT;
                return 0;