]> diplodocus.org Git - nmh/blobdiff - uip/show.c
mhn.defaults: make fetch less agressive on FreeBSD.
[nmh] / uip / show.c
index b14c60d9d8997b5fb6f42cde82557415b5379189..e5b71eff0a24a7246bfb0d58ca778b563a50fd00 100644 (file)
@@ -301,7 +301,13 @@ go_to_it: ;
        char **mp;
 
        for (i = 0, mp = non_mhl_vec.msgs; i < non_mhl_vec.size; ++i, ++mp) {
-           app_msgarg(&vec, *mp);
+           if (draftsw || file) {
+               /* Insert the switch before the filename. */
+               app_msgarg(&vec, vec.msgs[vec.size - 1]);
+               vec.msgs[vec.size - 2] = *mp;
+           } else {
+               app_msgarg(&vec, *mp);
+           }
        }
 
        if (strcmp (r1bindex (proc, '/'), "mhn") == 0) {