Remove caching of external MIME parts.
[mmh] / uip / mhlist.c
index 66f9d89..99b2cc7 100644 (file)
@@ -14,7 +14,6 @@
 #include <h/tws.h>
 #include <h/mime.h>
 #include <h/mhparse.h>
-#include <h/mhcachesbr.h>
 #include <h/utils.h>
 
 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