From 88d761e6fbdcce0763f6a6c885a45071560813d4 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 6 Jul 2011 02:09:46 +0300 Subject: [PATCH] * beginning of mu find --exec config (WIP) --- src/mu-config.c | 4 +++- src/mu-config.h | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mu-config.c b/src/mu-config.c index b0fdaa86..732f16b8 100644 --- a/src/mu-config.c +++ b/src/mu-config.c @@ -176,7 +176,9 @@ config_options_group_find (MuConfig *opts) "clear old links before filling a linksdir (false)", NULL}, {"format", 'o', 0, G_OPTION_ARG_STRING, &opts->formatstr, "output format ('plain'(*), 'links', 'xml'," - "'json', 'sexp', 'xquery')", NULL}, + "'json', 'sexp', 'xquery')", NULL}, + /* {"exec", 'e', 0, G_OPTION_ARG_STRING, &opts->exec, */ + /* "execute command on each match message", NULL}, */ {NULL, 0, 0, 0, NULL, NULL, NULL} }; diff --git a/src/mu-config.h b/src/mu-config.h index e6617122..361b8b16 100644 --- a/src/mu-config.h +++ b/src/mu-config.h @@ -103,7 +103,10 @@ struct _MuConfig { char *bookmark; /* use bookmark */ char *formatstr; /* output type * (plain,links,xml,json,sexp) */ - + char *exec; /* command to execute on the + * files for the matched + * messages */ + /* options for view */ gboolean separate; /* add separator between * multiple messages in mu