From c4bac8306e8f533d58381cbdf614a50d2a48b80d Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 31 Jan 2010 13:34:04 +0200 Subject: [PATCH] * mu-cmd-index: add documentation, don't print \n in quiet mode --- src/mu-cmd-index.c | 3 ++- src/mu-cmd-index.h | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/mu-cmd-index.c b/src/mu-cmd-index.c index a8603880..2ebd11a9 100644 --- a/src/mu-cmd-index.c +++ b/src/mu-cmd-index.c @@ -223,7 +223,8 @@ mu_cmd_index (MuConfigOptions *opts) NULL, NULL); if (!opts->nocleanup && !MU_CAUGHT_SIGNAL) { stats._processed = 0; /* start over */ - g_print ("\n"); + if (!opts->quiet) + g_print ("\n"); g_message ("Cleaning up missing messages"); mu_index_cleanup (midx, &stats, opts->quiet ? diff --git a/src/mu-cmd-index.h b/src/mu-cmd-index.h index 050c9d87..7461eb99 100644 --- a/src/mu-cmd-index.h +++ b/src/mu-cmd-index.h @@ -23,7 +23,23 @@ #include #include "mu-config.h" +/** + * execute the 'index' command + * + * @param opts configuration options + * + * @return TRUE if the command succeede, FALSE otherwise + */ gboolean mu_cmd_index (MuConfigOptions *opts); + + +/** + * execute the 'cleanup' command + * + * @param opts configuration options + * + * @return TRUE if the command succeede, FALSE otherwise + */ gboolean mu_cmd_cleanup (MuConfigOptions *opts);