diff options
author | Carl Worth <cworth@cworth.org> | 2010-10-27 13:02:17 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-10-27 13:02:17 -0700 |
commit | b9eac48c22f53f84ed1d9c1d8ca862a7b638c9ac (patch) | |
tree | 5b8670eb3bee7a3ab019c10bdcfeb5f7e8df3276 /notmuch.c | |
parent | 6c65fcd9aaf9307f6b08ab6b2c70c380ad6d3018 (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.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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.", |