]> diplodocus.org Git - nmh/blobdiff - uip/dist.c
Added tests of MMDF mailbox format to test-eom-align.
[nmh] / uip / dist.c
index e2504d4b32c0068679f9d4e4f39d129ca9ed34f0..7eea4fccea5cb2d332be435a4bb1b897648b3ea1 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * dist.c -- re-distribute a message
+/* dist.c -- re-distribute a message
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -9,7 +7,9 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include "sbr/m_maildir.h"
 #include <fcntl.h>
+#include "h/done.h"
 
 #define DIST_SWITCHES \
     X("annotate", 0, ANNOSW) \
@@ -208,13 +208,11 @@ main (int argc, char **argv)
        if (*cp == '+' || *cp == '@') {
            if (folder)
                adios (NULL, "only one folder at a time!");
-           else
-               folder = pluspath (cp);
+            folder = pluspath (cp);
        } else {
            if (msg)
                adios (NULL, "only one message at a time!");
-           else
-               msg = cp;
+            msg = cp;
        }
     }