aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-10-27 13:02:17 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-10-27 13:02:17 -0700
commitb9eac48c22f53f84ed1d9c1d8ca862a7b638c9ac (patch)
tree5b8670eb3bee7a3ab019c10bdcfeb5f7e8df3276 /notmuch.c
parent6c65fcd9aaf9307f6b08ab6b2c70c380ad6d3018 (diff)
notmuch: Add a new "notmuch config" command for querying configuration.
So far, we implement only "notmuch config get". It won't be too much work from here to also implement "notmuch config set".
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/notmuch.c b/notmuch.c
index f6b8c139..f9acfa36 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -321,6 +321,20 @@ command_t commands[] = {
"\tby the \"--format=json\" option of \"notmuch show\". If the\n"
"\tmessage specified by the search terms does not include a\n"
"\tpart with the specified \"id\" there will be no output." },
+ { "config", notmuch_config_command,
+ "get <section>.<item>",
+ "Get settings from the notmuch configuration file.",
+ "\tThe value of the specified configuration item is printed\n"
+ "\tto stdout. If the item has multiple values, each value\n"
+ "\tis separated by a newline character.\n"
+ "\n"
+ "\tAvailable configuration items include at least"
+ "\n"
+ "\t\tdatabase.path\n"
+ "\t\tuser.name\n"
+ "\t\tuser.primary_email\n"
+ "\t\tuser.other_email\n"
+ "\t\tnew.tags\n" },
{ "help", notmuch_help_command,
"[<command>]",
"This message, or more detailed help for the named command.",