X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8a204aba2ea3f7cf477af48a90afad655276e500..dbc35d5d494dd0ec68b7742446e42239a5e78bf1:/uip/mhstore.c diff --git a/uip/mhstore.c b/uip/mhstore.c index 1ca21494..80eddb27 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -16,7 +16,7 @@ #include #include #include "mhmisc.h" -#include "../sbr/m_maildir.h" +#include "sbr/m_maildir.h" #include "mhfree.h" #define MHSTORE_SWITCHES \ @@ -31,6 +31,7 @@ X("part number", 0, PARTSW) \ X("type content", 0, TYPESW) \ X("prefer content", 0, PREFERSW) \ + X("noprefer", 0, NPREFERSW) \ X("rcache policy", 0, RCACHESW) \ X("wcache policy", 0, WCACHESW) \ X("version", 0, VERSIONSW) \ @@ -166,6 +167,10 @@ do_cache: preferred_subtypes[npreferred++] = cp; continue; + case NPREFERSW: + npreferred = 0; + continue; + case FILESW: if (!(cp = *argp++) || (*cp == '-' && cp[1])) adios (NULL, "missing argument to %s", argp[-2]); @@ -211,7 +216,7 @@ do_cache: */ if ((cp = getenv ("MHSTORE"))) { if ((fp = fopen (cp, "r"))) { - readconfig ((struct node **) 0, fp, cp, 0); + readconfig(NULL, fp, cp, 0); fclose (fp); } else { admonish ("", "unable to read $MHSTORE profile (%s)", cp); @@ -222,7 +227,7 @@ do_cache: * Read the standard profile setup */ if ((fp = fopen (cp = etcpath ("mhn.defaults"), "r"))) { - readconfig ((struct node **) 0, fp, cp, 0); + readconfig(NULL, fp, cp, 0); fclose (fp); }