diff options
author | David Bremner <david@tethera.net> | 2021-08-18 21:46:42 -0700 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2021-08-18 21:46:42 -0700 |
commit | 3df2281746d57abbb45790ecb432ef40533c30bc (patch) | |
tree | 3e595ef0946ce6aa6604863a36e3e67bbf7d3f03 /notmuch-config.c | |
parent | 6fec5d771ede7998ff395abd636d391c21163409 (diff) | |
parent | 34fec91e17629a6a095bd5930e020dfeaddff245 (diff) |
Merge tag 'debian/0.32.3-1'
notmuch release 0.32.3-1 for unstable (sid) [dgit]
[dgit distro=debian no-split --quilt=linear]
Diffstat (limited to 'notmuch-config.c')
-rw-r--r-- | notmuch-config.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/notmuch-config.c b/notmuch-config.c index 3430a3d3..4de55e5f 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -538,11 +538,18 @@ notmuch_config_command_get (notmuch_database_t *notmuch, char *item) { notmuch_config_values_t *list; - for (list = notmuch_config_get_values_string (notmuch, item); - notmuch_config_values_valid (list); - notmuch_config_values_move_to_next (list)) { - const char *val = notmuch_config_values_get (list); - puts (val); + if (STRNCMP_LITERAL (item, BUILT_WITH_PREFIX) == 0) { + if (notmuch_built_with (item + strlen (BUILT_WITH_PREFIX))) + puts ("true"); + else + puts ("false"); + } else { + for (list = notmuch_config_get_values_string (notmuch, item); + notmuch_config_values_valid (list); + notmuch_config_values_move_to_next (list)) { + const char *val = notmuch_config_values_get (list); + puts (val); + } } return EXIT_SUCCESS; } |