X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6b6e5f94f81e56e9e9e1cf26ea596c01ed403555..9f1e781a5c2beb9df943c832300a3f5bee1e4ed3:/uip/mhn.c?ds=inline diff --git a/uip/mhn.c b/uip/mhn.c index 0d1d48e6..454c4348 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -5,18 +5,19 @@ * complete copyright information. */ -#include +#include "h/mh.h" +#include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "h/signals.h" +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/fmt_scan.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/mhcachesbr.h" #include "h/done.h" -#include +#include "h/utils.h" #include "mhmisc.h" #include "sbr/m_maildir.h" #include "mhfree.h" @@ -89,7 +90,7 @@ static int rfc934sw = 0; /* * what action to take? */ -static int cachesw = 0; +static bool cachesw; static bool listsw; static bool showsw; static bool storesw; @@ -107,7 +108,7 @@ main (int argc, char **argv) { bool sizesw = true; bool headsw = true; - int autosw = 0; + bool autosw = false; int msgnum, *icachesw; char *cp, *file = NULL, *folder = NULL; char *maildir, buf[100], **argp; @@ -148,17 +149,17 @@ main (int argc, char **argv) done (0); case AUTOSW: - autosw++; + autosw = true; continue; case NAUTOSW: - autosw = 0; + autosw = false; continue; case CACHESW: - cachesw++; + cachesw = true; continue; case NCACHESW: - cachesw = 0; + cachesw = false; continue; case RCACHESW: