* mu-cmd-index: restart 'processed' at 0 when cleaning up after indexing
This commit is contained in:
@ -240,8 +240,10 @@ mu_cmd_index (MuConfigOptions *opts)
|
|||||||
g_message ("Database: %s", opts->xpath);
|
g_message ("Database: %s", opts->xpath);
|
||||||
|
|
||||||
rv = run_index (midx, opts->maildir, &stats, opts->reindex, opts->quiet);
|
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);
|
rv = run_cleanup (midx, &stats, opts->quiet);
|
||||||
|
}
|
||||||
|
|
||||||
mu_index_destroy (midx);
|
mu_index_destroy (midx);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user