diff --git a/src/mu-cmd-index.c b/src/mu-cmd-index.c index 81ff9c71..b5536bb2 100644 --- a/src/mu-cmd-index.c +++ b/src/mu-cmd-index.c @@ -240,8 +240,10 @@ mu_cmd_index (MuConfigOptions *opts) g_message ("Database: %s", opts->xpath); rv = run_index (midx, opts->maildir, &stats, opts->reindex, opts->quiet); - if (rv == MU_OK && !opts->nocleanup) + if (rv == MU_OK && !opts->nocleanup) { + stats._processed = 0; /* restart processed at 0 */ rv = run_cleanup (midx, &stats, opts->quiet); + } mu_index_destroy (midx);