X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frefile.c;h=2ac8916feadb184e361cdea99c7a79363c878c89;hp=b8b64d02a71e97bd3fa91545fa702573363d9b2d;hb=337338b404931f06f0db2119c9e145e8ca5a9860;hpb=dc6c45394a06750eab463a2523406eed6c77e2e1 diff --git a/uip/refile.c b/uip/refile.c index b8b64d0..2ac8916 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -13,31 +13,29 @@ #include 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);