From e28b9dcdf33a4219f4d1edf19c5731f446c6ab4d Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 4 Jan 2010 22:50:56 +0200 Subject: [PATCH] * mu-cmd: improve cleanup, index output: print final stats --- src/mu-cmd.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/mu-cmd.c b/src/mu-cmd.c index 16668212..7b0cf787 100644 --- a/src/mu-cmd.c +++ b/src/mu-cmd.c @@ -379,9 +379,10 @@ _cmd_index (MuConfigOptions *opts) NULL); } - if (!opts->quiet) + if (!opts->quiet) { + _index_msg_cb (&stats, NULL); g_print ("\n"); - + } mu_index_destroy (midx); } mu_msg_gmime_uninit (); @@ -433,11 +434,13 @@ _cmd_cleanup (MuConfigOptions *opts) opts->quiet ? NULL :_cleanup_cb, NULL); mu_index_destroy (midx); + + if (!opts->quiet) { + _cleanup_cb (&stats, NULL); + g_print ("\n"); + } } - - if (!opts->quiet) - g_print ("\n"); - + mu_msg_gmime_uninit (); return rv == MU_OK ? TRUE : FALSE;