]> diplodocus.org Git - nmh/blobdiff - uip/rcvpack.c
whatnow: Remove undocumented printf-formatting of -prompt string.
[nmh] / uip / rcvpack.c
index 6235e5e96625b9247ac986ba7628b2bee5536af5..ec1342e4fb47589e45e341b26169d9aa9915d145 100644 (file)
@@ -10,6 +10,7 @@
 #include <h/rcvmail.h>
 #include <h/tws.h>
 #include <h/mts.h>
+#include "h/done.h"
 #include <h/utils.h>
 
 #define RCVPACK_SWITCHES \
@@ -73,8 +74,7 @@ main (int argc, char **argv)
        }
        if (file)
            adios (NULL, "only one file at a time!");
-       else
-           file = cp;
+        file = cp;
     }
 
     if (!file)
@@ -87,7 +87,7 @@ main (int argc, char **argv)
        done (RCV_MBX);
 
     /* append the message */
-    if (mbx_copy (file, mbx_style, md, fileno(stdin), 1, NULL, 0) == NOTOK) {
+    if (mbx_copy (file, mbx_style, md, fileno(stdin), NULL) == NOTOK) {
        mbx_close (file, md);
        done (RCV_MBX);
     }