]> diplodocus.org Git - nmh/blobdiff - uip/slocal.c
test: Send command's stderr down pipe; don't discard.
[nmh] / uip / slocal.c
index cc1aa7bc321630d1173f72a4eb079b0b746d8c4e..5eb5243c970c14373885faffd4f02bc45ef2177a 100644 (file)
@@ -20,6 +20,9 @@
  */
 
 #include "h/mh.h"
+#include "sbr/dtime.h"
+#include "sbr/m_gmprot.h"
+#include "sbr/m_getfld.h"
 #include "sbr/getarguments.h"
 #include "sbr/smatch.h"
 #include "sbr/strindex.h"
@@ -32,7 +35,6 @@
 #include "sbr/print_help.h"
 #include "sbr/error.h"
 #include "h/dropsbr.h"
-#include "h/rcvmail.h"
 #include "h/signals.h"
 #include <setjmp.h>
 #include "h/tws.h"
@@ -390,7 +392,7 @@ main (int argc, char **argv)
     /* deliver the message */
     status = localmail (fd, mdlvr);
 
-    done (status != -1 ? RCV_MOK : RCV_MBX);
+    done(status != -1 ? 0 : 1);
     return 1;
 }