Removed the draft message in favor for a consistent draft folder facility
[mmh] / uip / refile.c
index b8b64d0..2ac8916 100644 (file)
 #include <errno.h>
 
 static struct swit switches[] = {
-#define DRAFTSW  0
-       { "draft", 0 },
-#define LINKSW  1
+#define LINKSW  0
        { "link", 0 },
-#define NLINKSW  2
+#define NLINKSW  1
        { "nolink", 0 },
-#define PRESSW  3
+#define PRESSW  2
        { "preserve", 0 },
-#define NPRESSW  4
+#define NPRESSW  3
        { "nopreserve", 0 },
-#define UNLINKSW  5
+#define UNLINKSW  4
        { "unlink", 0 },
-#define NUNLINKSW  6
+#define NUNLINKSW  5
        { "nounlink", 0 },
-#define SRCSW  7
+#define SRCSW  6
        { "src +folder", 0 },
-#define FILESW  8
+#define FILESW  7
        { "file file", 0 },
-#define RPROCSW  9
+#define RPROCSW  8
        { "rmmproc program", 0 },
-#define NRPRCSW  10
+#define NRPRCSW  9
        { "normmproc", 0 },
-#define VERSIONSW  11
+#define VERSIONSW  10
        { "version", 0 },
-#define HELPSW  12
+#define HELPSW  11
        { "help", 0 },
        { NULL, 0 }
 };
@@ -62,7 +60,7 @@ int
 main (int argc, char **argv)
 {
        int linkf = 0, preserve = 0, filep = 0;
-       int foldp = 0, isdf = 0, unlink_msgs = 0;
+       int foldp = 0, unlink_msgs = 0;
        int i, msgnum;
        char *cp, *folder = NULL, buf[BUFSIZ];
        char **argp, **arguments;
@@ -133,12 +131,6 @@ main (int argc, char **argv)
                                folder = path (*cp == '+' || *cp == '@' ? cp + 1 : cp,
                                                           *cp != '@' ? TFOLDER : TSUBCWF);
                                continue;
-                       case DRAFTSW:
-                               if (filep > NFOLDERS)
-                                       adios (NULL, "only %d files allowed!", NFOLDERS);
-                               isdf = 0;
-                               files[filep++] = getcpy (m_draft (NULL, NULL, 1, &isdf));
-                               continue;
                        case FILESW:
                                if (filep > NFOLDERS)
                                        adios (NULL, "only %d files allowed!", NFOLDERS);