X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d1797eb2b2d5f3aa1b653e6a2562bf79c559eeb2..e605596f06f250775f89ddfe3f7f2c8fcfda1c4e:/uip/mhlist.c?ds=sidebyside diff --git a/uip/mhlist.c b/uip/mhlist.c index 0dc142a3..0f9a51ee 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -15,6 +15,7 @@ #include #include #include +#include "../sbr/m_maildir.h" #include "mhfree.h" #define MHLIST_SWITCHES \ @@ -49,12 +50,6 @@ DEFINE_SWITCH_ARRAY(MHLIST, switches); #undef X -/* mhcachesbr.c */ -extern int rcachesw; -extern int wcachesw; -extern char *cache_public; -extern char *cache_private; - /* mhmisc.c */ extern int npart; extern int ntype; @@ -137,9 +132,9 @@ main (int argc, char **argv) do_cache: if (!(cp = *argp++) || *cp == '-') adios (NULL, "missing argument to %s", argp[-2]); - switch (*icachesw = smatch (cp, caches)) { + switch (*icachesw = smatch (cp, cache_policy)) { case AMBIGSW: - ambigsw (cp, caches); + ambigsw (cp, cache_policy); done (1); case UNKWNSW: adios (NULL, "%s unknown", cp); @@ -232,8 +227,7 @@ do_cache: if (*cp == '+' || *cp == '@') { if (folder) adios (NULL, "only one folder at a time!"); - else - folder = pluspath (cp); + folder = pluspath (cp); } else app_msgarg(&msgs, cp); }