From c2ff9b3f25b93bbb8d178944b683fe69f95a8f4a Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Fri, 8 Jan 2010 20:54:55 +0200 Subject: [PATCH] * mu-config: make cleanup the default, and nocleanup an option; + some cosmetics --- src/mu-config.c | 12 +++++++----- src/mu-config.h | 14 +++----------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/mu-config.c b/src/mu-config.c index de911108..8675e99a 100644 --- a/src/mu-config.c +++ b/src/mu-config.c @@ -17,6 +17,8 @@ ** */ +#include "config.h" + #include #include /* memset */ @@ -63,8 +65,8 @@ mu_config_options_group_index (MuConfigOptions *opts) "top of the maildir", NULL}, {"reindex", 'r', 0, G_OPTION_ARG_NONE, &opts->reindex, "index already indexed messages too", NULL}, - {"cleanup", 'u', 0, G_OPTION_ARG_NONE, &opts->cleanup, - "cleanup database after indexing", NULL}, + {"nocleanup", 'u', 0, G_OPTION_ARG_NONE, &opts->nocleanup, + "don't clean up the database after indexing", NULL}, { NULL, 0, 0, 0, NULL, NULL, NULL } }; @@ -77,7 +79,7 @@ mu_config_options_group_index (MuConfigOptions *opts) } GOptionGroup* -mu_config_options_group_query (MuConfigOptions *opts) +mu_config_options_group_find (MuConfigOptions *opts) { GOptionGroup *og; GOptionEntry entries[] = { @@ -96,8 +98,8 @@ mu_config_options_group_query (MuConfigOptions *opts) { NULL, 0, 0, 0, NULL, NULL, NULL } }; - og = g_option_group_new ("query", - "options for the 'query' command", + og = g_option_group_new ("find", + "options for the 'find' command", "", NULL, NULL); g_option_group_add_entries (og, entries); diff --git a/src/mu-config.h b/src/mu-config.h index c439999d..c973c1c9 100644 --- a/src/mu-config.h +++ b/src/mu-config.h @@ -41,7 +41,7 @@ struct _MuConfigOptions { /* options for indexing */ char *maildir; /* where the mails are */ - gboolean cleanup; /* cleanup deleted mails from db */ + gboolean nocleanup; /* don't cleanup deleted mails from db */ gboolean reindex; /* re-index existing mails */ /* options for querying */ @@ -101,22 +101,14 @@ GOptionGroup* mu_config_options_group_mu (MuConfigOptions *opts); GOptionGroup* mu_config_options_group_index (MuConfigOptions *opts); /** - * get the query-options option group + * get the find-options option group * * @param opts the MuConfigOptions to fill from this option group * * @return a new option group; *DON'T* unref when added to an optioncontext */ -GOptionGroup* mu_config_options_group_query (MuConfigOptions *opts); +GOptionGroup* mu_config_options_group_find (MuConfigOptions *opts); -/** - * - * - * @param opts - * - * @return - */ -char* mu_config_expanded_mu_home (MuConfigOptions *opts); G_END_DECLS