From b7744e0da25e5db071498c61d5ddfe48a2d97d3b Mon Sep 17 00:00:00 2001 From: djcb Date: Sun, 17 Jun 2012 17:49:55 +0300 Subject: [PATCH] * add --my-addresses argument to mu-config --- mu/mu-config.c | 2 ++ mu/mu-config.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/mu/mu-config.c b/mu/mu-config.c index ed572460..c4e0d716 100644 --- a/mu/mu-config.c +++ b/mu/mu-config.c @@ -148,6 +148,8 @@ config_options_group_index (void) "index even already indexed messages (false)", NULL}, {"rebuild", 0, 0, G_OPTION_ARG_NONE, &MU_CONFIG.rebuild, "rebuild the database from scratch (false)", NULL}, + {"my-address", 0, 0, G_OPTION_ARG_STRING_ARRAY,&MU_CONFIG.my_addresses, + "my e-mail address (regexp); can be used multiple times", NULL}, {"autoupgrade", 0, 0, G_OPTION_ARG_NONE, &MU_CONFIG.autoupgrade, "auto-upgrade the database with new mu versions (false)", NULL}, diff --git a/mu/mu-config.h b/mu/mu-config.h index ead79947..3a8443c9 100644 --- a/mu/mu-config.h +++ b/mu/mu-config.h @@ -107,6 +107,9 @@ struct _MuConfig { * commits, or 0 for * default */ int max_msg_size; /* maximum size for message files */ + char** my_addresses; /* 'my e-mail address', for mu + * cfind; can be use multiple + * times */ /* options for querying 'find' (and view-> 'summary') */ char *fields; /* fields to show in output */