From 01d6fbb25730e4904346d01d2b643c887b5aa963 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 13 Feb 2010 18:45:44 +0200 Subject: [PATCH] * mu-cmd-index: restart 'processed' at 0 when cleaning up after indexing --- src/mu-cmd-index.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);