X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhlist.c;h=99b2cc787c8a9f0becc47cc021e044583b42675b;hp=66f9d894a414211bb08f4ada0fd01cce42e0199d;hb=d1fefd9f614e4dc3cda16da6c69133c1b2005269;hpb=70bc44ec2fd9f4033a6190868979991338ba6664 diff --git a/uip/mhlist.c b/uip/mhlist.c index 66f9d89..99b2cc7 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -14,7 +14,6 @@ #include #include #include -#include #include static struct swit switches[] = { @@ -36,15 +35,11 @@ static struct swit switches[] = { { "part number", 0 }, #define TYPESW 8 { "type content", 0 }, -#define RCACHESW 9 - { "rcache policy", 0 }, -#define WCACHESW 10 - { "wcache policy", 0 }, -#define VERSIONSW 11 +#define VERSIONSW 9 { "version", 0 }, -#define HELPSW 12 +#define HELPSW 10 { "help", 0 }, -#define DEBUGSW 13 +#define DEBUGSW 11 { "debug", -5 }, { NULL, 0 } }; @@ -53,12 +48,6 @@ static struct swit switches[] = { /* mhparse.c */ extern char *tmp; /* directory to place temp files */ -/* mhcachesbr.c */ -extern int rcachesw; -extern int wcachesw; -extern char *cache_public; -extern char *cache_private; - /* mhmisc.c */ extern int npart; extern int ntype; @@ -104,7 +93,7 @@ int main(int argc, char **argv) { int sizesw = 1, headsw = 1; - int msgnum, *icachesw; + int msgnum; char *cp, *file = NULL, *folder = NULL; char *maildir, buf[100], **argp; char **arguments; @@ -145,25 +134,6 @@ main(int argc, char **argv) print_version(invo_name); done(1); - case RCACHESW: - icachesw = &rcachesw; - goto do_cache; - case WCACHESW: - icachesw = &wcachesw; -do_cache: - if (!(cp = *argp++) || *cp == '-') - adios(NULL, "missing argument to %s", argp[-2]); - switch (*icachesw = smatch(cp, caches)) { - case AMBIGSW: - ambigsw(cp, caches); - done(1); - case UNKWNSW: - adios(NULL, "%s unknown", cp); - default: - break; - } - continue; - case HEADSW: headsw = 1; continue; @@ -229,15 +199,6 @@ do_cache: set_endian(); - /* Check for public cache location */ - if ((cache_public = context_find(nmhcache)) && *cache_public != '/') - cache_public = NULL; - - /* Check for private cache location */ - if (!(cache_private = context_find(nmhprivcache))) - cache_private = ".cache"; - cache_private = getcpy(toabsdir(cache_private)); - /* ** Check for storage directory. If specified, ** then store temporary files there. Else we