X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-config.c;h=4de55e5fb0010872207703b1063f3a296e7f99da;hp=3430a3d35e7fe06052065575f21220457547d070;hb=717e3dcdc3e55d72c8e4a1948708c34170dbf926;hpb=19983fe554b2b353f10cb818b80e7ef815623b66 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; }