X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dbdbd49d59ae5c14e66b1c148a63b8abc9d076ab..0b7286788a95dd854d1826b8493eda431d8e8aac:/uip/rmm.c diff --git a/uip/rmm.c b/uip/rmm.c index 0d71be96..38090baa 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -5,9 +5,19 @@ * complete copyright information. */ -#include +#include "h/mh.h" +#include "sbr/folder_read.h" +#include "sbr/folder_free.h" +#include "sbr/folder_delmsgs.h" +#include "sbr/context_replace.h" +#include "sbr/context_find.h" +#include "sbr/ambigsw.h" +#include "sbr/path.h" +#include "sbr/print_version.h" +#include "sbr/print_help.h" +#include "sbr/error.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #define RMM_SWITCHES \ @@ -30,7 +40,8 @@ DEFINE_SWITCH_ARRAY(RMM, switches); int main (int argc, char **argv) { - int msgnum, unlink_msgs = 0; + int msgnum; + bool unlink_msgs = false; char *cp, *maildir, *folder = NULL; char buf[BUFSIZ], **argp; char **arguments; @@ -62,10 +73,10 @@ main (int argc, char **argv) done (0); case UNLINKSW: - unlink_msgs++; + unlink_msgs = true; continue; case NUNLINKSW: - unlink_msgs = 0; + unlink_msgs = false; continue; case RPROCSW: