* mu-cmd-index: restart 'processed' at 0 when cleaning up after indexing

This commit is contained in:
Dirk-Jan C. Binnema 2010-02-13 18:45:44 +02:00
parent 2846a40025
commit 01d6fbb257
1 changed files with 3 additions and 1 deletions

View File

@ -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);