X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwhatnow.c;h=afe4129333387549b9999f40f315c6443d577661;hp=5b59c86caa23ad74ac56f9a3c9502ea5feb05ef3;hb=fb0594cb913cab5e14e2c295b79eb48cc675bbbf;hpb=c8195849d2e366c569271abb0f5f60f4ebf0b4d0 diff --git a/uip/whatnow.c b/uip/whatnow.c index 5b59c86..afe4129 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -66,9 +66,9 @@ static struct swit aleqs[] = { #define REFILEOPT 1 { "refile [] +folder", 0 }, #define DISPSW 2 - { "display []", 0 }, + { "display", 0 }, #define LISTSW 3 - { "list []", 0 }, + { "list", 0 }, #define SENDSW 4 { "send []", 0 }, #define PUSHSW 5 @@ -218,10 +218,13 @@ main(int argc, char **argv) switch (smatch(*argp, aleqs)) { case DISPSW: /* display the msg being replied to or distributed */ - if (msgnam) - showfile(++argp, msgnam); - else + if (msgnam) { + snprintf(buf, sizeof buf, "%s '%s'", + lproc, msgnam); + system(buf); + } else { advise(NULL, "no alternate message to display"); + } break; case EDITSW: @@ -235,7 +238,8 @@ main(int argc, char **argv) case LISTSW: /* display the draft file */ - showfile(++argp, drft); + snprintf(buf, sizeof buf, "%s '%s'", lproc, drft); + system(buf); break; case QUITSW: