X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d1797eb2b2d5f3aa1b653e6a2562bf79c559eeb2..6015bb1f7:/uip/mhn.c?ds=inline diff --git a/uip/mhn.c b/uip/mhn.c index 335d4b29..70da652b 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -11,11 +11,14 @@ #include #include #include +#include #include #include #include #include +#include "../sbr/m_maildir.h" #include "mhfree.h" +#include "mhshowsbr.h" #define MHN_SWITCHES \ X("auto", 0, AUTOSW) \ @@ -72,18 +75,6 @@ DEFINE_SWITCH_ARRAY(MHN, switches); #undef X -/* mhcachesbr.c */ -extern int rcachesw; -extern int wcachesw; -extern char *cache_public; -extern char *cache_private; - -/* mhshowsbr.c */ -extern char *progsw; -extern int nolist; -extern int nomore; /* flags for moreproc/header display */ -extern char *formsw; - /* mhmisc.c */ extern int npart; extern int ntype; @@ -118,9 +109,6 @@ int part_ok (CT); int type_ok (CT, int); void flush_errors (void); -/* mhcachesbr.c */ -void cache_all_messages (CT *); - /* * static prototypes */ @@ -192,9 +180,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); @@ -323,8 +311,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); }