projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed the draft message in favor for a consistent draft folder facility
[mmh]
/
uip
/
refile.c
diff --git
a/uip/refile.c
b/uip/refile.c
index
b8b64d0
..
2ac8916
100644
(file)
--- a/
uip/refile.c
+++ b/
uip/refile.c
@@
-13,31
+13,29
@@
#include <errno.h>
static struct swit switches[] = {
#include <errno.h>
static struct swit switches[] = {
-#define DRAFTSW 0
- { "draft", 0 },
-#define LINKSW 1
+#define LINKSW 0
{ "link", 0 },
{ "link", 0 },
-#define NLINKSW 2
+#define NLINKSW 1
{ "nolink", 0 },
{ "nolink", 0 },
-#define PRESSW 3
+#define PRESSW 2
{ "preserve", 0 },
{ "preserve", 0 },
-#define NPRESSW 4
+#define NPRESSW 3
{ "nopreserve", 0 },
{ "nopreserve", 0 },
-#define UNLINKSW 5
+#define UNLINKSW 4
{ "unlink", 0 },
{ "unlink", 0 },
-#define NUNLINKSW 6
+#define NUNLINKSW 5
{ "nounlink", 0 },
{ "nounlink", 0 },
-#define SRCSW 7
+#define SRCSW 6
{ "src +folder", 0 },
{ "src +folder", 0 },
-#define FILESW 8
+#define FILESW 7
{ "file file", 0 },
{ "file file", 0 },
-#define RPROCSW 9
+#define RPROCSW 8
{ "rmmproc program", 0 },
{ "rmmproc program", 0 },
-#define NRPRCSW 10
+#define NRPRCSW 9
{ "normmproc", 0 },
{ "normmproc", 0 },
-#define VERSIONSW 11
+#define VERSIONSW 10
{ "version", 0 },
{ "version", 0 },
-#define HELPSW 12
+#define HELPSW 11
{ "help", 0 },
{ NULL, 0 }
};
{ "help", 0 },
{ NULL, 0 }
};
@@
-62,7
+60,7
@@
int
main (int argc, char **argv)
{
int linkf = 0, preserve = 0, filep = 0;
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;
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;
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);
case FILESW:
if (filep > NFOLDERS)
adios (NULL, "only %d files allowed!", NFOLDERS);