From b94c4ae659197caa0ffe2d68e0c8382a71b03b3c Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 3 Jan 2010 13:41:56 +0200 Subject: [PATCH] * mu-config: add 'clearlinks' option --- src/mu-config.c | 2 ++ src/mu-config.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/mu-config.c b/src/mu-config.c index d358fe50..8f4084f7 100644 --- a/src/mu-config.c +++ b/src/mu-config.c @@ -89,6 +89,8 @@ mu_config_options_group_query (MuConfigOptions *opts) "sort descending", NULL}, {"linksdir", 't', 0, G_OPTION_ARG_STRING, &opts->linksdir, "output as symbolic links to a target maildir", NULL }, + {"clearlinks", 'c', 0, G_OPTION_ARG_NONE, &opts->clearlinks, + "clear old links before filling a linksdir", NULL}, { NULL, 0, 0, 0, NULL, NULL, NULL } }; diff --git a/src/mu-config.h b/src/mu-config.h index e0979a1e..7bfb7e41 100644 --- a/src/mu-config.h +++ b/src/mu-config.h @@ -50,6 +50,7 @@ struct _MuConfigOptions { char *sortfield; /* field to sort by (string) */ char *linksdir; /* maildir to output symlinks */ + gboolean clearlinks; /* clear a linksdir before filling */ gboolean descending; /* sort descending? */ };