* mu-cmd: improve cleanup, index output: print final stats

This commit is contained in:
Dirk-Jan C. Binnema 2010-01-04 22:50:56 +02:00
parent 620b7dc8c3
commit e28b9dcdf3
1 changed files with 9 additions and 6 deletions

View File

@ -379,9 +379,10 @@ _cmd_index (MuConfigOptions *opts)
NULL); NULL);
} }
if (!opts->quiet) if (!opts->quiet) {
_index_msg_cb (&stats, NULL);
g_print ("\n"); g_print ("\n");
}
mu_index_destroy (midx); mu_index_destroy (midx);
} }
mu_msg_gmime_uninit (); mu_msg_gmime_uninit ();
@ -433,11 +434,13 @@ _cmd_cleanup (MuConfigOptions *opts)
opts->quiet ? NULL :_cleanup_cb, opts->quiet ? NULL :_cleanup_cb,
NULL); NULL);
mu_index_destroy (midx); mu_index_destroy (midx);
if (!opts->quiet) {
_cleanup_cb (&stats, NULL);
g_print ("\n");
}
} }
if (!opts->quiet)
g_print ("\n");
mu_msg_gmime_uninit (); mu_msg_gmime_uninit ();
return rv == MU_OK ? TRUE : FALSE; return rv == MU_OK ? TRUE : FALSE;