From b9eac48c22f53f84ed1d9c1d8ca862a7b638c9ac Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 27 Oct 2010 13:02:17 -0700 Subject: 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". --- notmuch.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'notmuch.c') 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
.", + "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, "[]", "This message, or more detailed help for the named command.", -- cgit v1.2.3