]> diplodocus.org Git - nmh/blobdiff - uip/send.c
Include proper header without READLINE_SUPPORT.
[nmh] / uip / send.c
index dde2029b7b9c036fa73387966e02f92e1c35d308..c12908f46884511fbd38e7ebdbcc8568e17de97f 100644 (file)
@@ -5,12 +5,35 @@
  * complete copyright information.
  */
 
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#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/cpydata.h"
+#include "sbr/m_draft.h"
+#include "sbr/m_convert.h"
+#include "sbr/folder_read.h"
+#include "sbr/context_save.h"
+#include "sbr/context_find.h"
+#include "sbr/brkstring.h"
+#include "sbr/ambigsw.h"
+#include "sbr/push.h"
+#include "sbr/path.h"
+#include "sbr/print_version.h"
+#include "sbr/print_help.h"
+#include "sbr/arglist.h"
+#include "sbr/error.h"
 #include <fcntl.h>
 #include "h/done.h"
 #include <fcntl.h>
 #include "h/done.h"
-#include <h/utils.h>
+#include "h/utils.h"
 #ifdef OAUTH_SUPPORT
 #ifdef OAUTH_SUPPORT
-# include <h/oauth.h>
+#include "h/oauth.h"
 #endif
 #include "sbr/m_maildir.h"
 #include "sbr/m_mktemp.h"
 #endif
 #include "sbr/m_maildir.h"
 #include "sbr/m_mktemp.h"
@@ -46,7 +69,6 @@
     X("nomsgid", 0, NMSGDSW) \
     X("push", 0, PUSHSW) \
     X("nopush", 0, NPUSHSW) \
     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) \
     X("unique", -6, UNIQSW) \
     X("nounique", -8, NUNIQSW) \
     X("verbose", 0, VERBSW) \
@@ -101,7 +123,6 @@ extern int debugsw;         /* from sendsbr.c */
 extern bool forwsw;
 extern int inplace;
 extern bool pushsw;
 extern bool forwsw;
 extern int inplace;
 extern bool pushsw;
-extern int splitsw;
 extern bool unique;
 extern bool verbsw;
 
 extern bool unique;
 extern bool verbsw;
 
@@ -196,11 +217,6 @@ main (int argc, char **argv)
                    pushsw = false;
                    continue;
 
                    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;
                case UNIQSW: 
                    unique = true;
                    continue;
@@ -459,7 +475,6 @@ go_to_it:
        push ();
 
     status = 0;
        push ();
 
     status = 0;
-    closefds (3);
 
     for (msgnum = 0; msgnum < msgp; msgnum++) {
         switch (sendsbr (vec, vecp, program, msgs[msgnum], &st, 1, auth_svc)) {
 
     for (msgnum = 0; msgnum < msgp; msgnum++) {
         switch (sendsbr (vec, vecp, program, msgs[msgnum], &st, 1, auth_svc)) {