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? */ };