]> diplodocus.org Git - nmh/blobdiff - uip/send.c
Commit ddf3a8574f65 is a fix to commit af586ebe59b7.
[nmh] / uip / send.c
index e6a74f3197479f260a3ae80d764c5505280faa1a..c12908f46884511fbd38e7ebdbcc8568e17de97f 100644 (file)
@@ -6,9 +6,15 @@
  */
 
 #include "h/mh.h"
+#include "sendsbr.h"
+#include "sbr/m_name.h"
+#include "sbr/getarguments.h"
+#include "sbr/read_switch_multiword.h"
+#include "sbr/concat.h"
+#include "sbr/seq_setprev.h"
+#include "sbr/seq_save.h"
 #include "sbr/showfile.h"
 #include "sbr/smatch.h"
-#include "sbr/closefds.h"
 #include "sbr/cpydata.h"
 #include "sbr/m_draft.h"
 #include "sbr/m_convert.h"
@@ -63,7 +69,6 @@
     X("nomsgid", 0, NMSGDSW) \
     X("push", 0, PUSHSW) \
     X("nopush", 0, NPUSHSW) \
-    X("split seconds", 0, SPLITSW) \
     X("unique", -6, UNIQSW) \
     X("nounique", -8, NUNIQSW) \
     X("verbose", 0, VERBSW) \
@@ -118,7 +123,6 @@ extern int debugsw;         /* from sendsbr.c */
 extern bool forwsw;
 extern int inplace;
 extern bool pushsw;
-extern int splitsw;
 extern bool unique;
 extern bool verbsw;
 
@@ -213,11 +217,6 @@ main (int argc, char **argv)
                    pushsw = false;
                    continue;
 
-               case SPLITSW: 
-                   if (!(cp = *argp++) || sscanf (cp, "%d", &splitsw) != 1)
-                       die("missing argument to %s", argp[-2]);
-                   continue;
-
                case UNIQSW: 
                    unique = true;
                    continue;
@@ -476,7 +475,6 @@ go_to_it:
        push ();
 
     status = 0;
-    closefds (3);
 
     for (msgnum = 0; msgnum < msgp; msgnum++) {
         switch (sendsbr (vec, vecp, program, msgs[msgnum], &st, 1, auth_svc)) {