* complete copyright information.
*/
-#include <h/mh.h>
+#include "h/mh.h"
+#include "sbr/folder_read.h"
+#include "sbr/context_save.h"
+#include "sbr/context_replace.h"
+#include "sbr/context_find.h"
+#include "sbr/ambigsw.h"
+#include "sbr/pidstatus.h"
+#include "sbr/path.h"
+#include "sbr/print_version.h"
+#include "sbr/print_help.h"
+#include "sbr/arglist.h"
+#include "sbr/error.h"
#include <fcntl.h>
-#include <h/tws.h>
+#include "h/tws.h"
#include "h/done.h"
-#include <h/utils.h>
+#include "h/utils.h"
#include "sbr/m_maildir.h"
+#include "forwsbr.h"
#define IFORMAT "digest-issue-%s"
int
main (int argc, char **argv)
{
- int anot = 0, inplace = 1, mime = 0;
+ bool anot = false;
+ bool inplace = true;
+ bool mime = false;
int issue = 0, volume = 0, dashstuff = 0;
- int nedit = 0, nwhat = 0, i, in;
+ bool nedit = false;
+ bool nwhat = false;
+ int i, in;
int out, isdf = 0, msgnum = 0;
int outputlinelen = OUTPUTLINELEN;
int dat[5];
char **argp, **arguments;
struct stat st;
struct msgs_array msgs = { 0, 0, NULL };
- int buildsw = 0;
+ bool buildsw = false;
if (nmh_init(argv[0], true, true)) { return 1; }
done (0);
case ANNOSW:
- anot++;
+ anot = true;
continue;
case NANNOSW:
- anot = 0;
+ anot = false;
continue;
case EDITRSW:
if (!(ed = *argp++) || *ed == '-')
die("missing argument to %s", argp[-2]);
- nedit = 0;
+ nedit = false;
continue;
case NEDITSW:
- nedit++;
+ nedit = true;
continue;
case WHATSW:
if (!(whatnowproc = *argp++) || *whatnowproc == '-')
die("missing argument to %s", argp[-2]);
- nwhat = 0;
+ nwhat = false;
continue;
case BILDSW:
- buildsw++;
+ buildsw = true;
/* FALLTHRU */
case NWHATSW:
- nwhat++;
+ nwhat = true;
continue;
case FILESW:
if (!(cp = *argp++) || *cp == '-')
die("missing argument to %s", argp[-2]);
filter = mh_xstrdup(etcpath(cp));
- mime = 0;
+ mime = false;
continue;
case FORMSW:
if (!(form = *argp++) || *form == '-')
continue;
case INPLSW:
- inplace++;
+ inplace = true;
continue;
case NINPLSW:
- inplace = 0;
+ inplace = false;
continue;
case MIMESW:
- mime++;
+ mime = true;
filter = NULL;
continue;
case NMIMESW:
- mime = 0;
+ mime = false;
continue;
case DGSTSW:
if (!(cp = *argp++) || *cp == '-')
die("missing argument to %s", argp[-2]);
digest = mh_xstrdup(cp);
- mime = 0;
+ mime = false;
continue;
case ISSUESW:
if (!(cp = *argp++) || *cp == '-')
/*
* Forwarding a file.
*/
- anot = 0; /* don't want to annotate a file */
+ anot = false; /* don't want to annotate a file */
} else {
/*
* Forwarding a message.