This will be needed by (at least) the conversion of notmuch-new.c to
the new config framework
---
lib/config.cc | 3 +++
lib/notmuch.h | 1 +
test/T590-libconfig.sh | 1 +
3 files changed, 5 insertions(+)
diff --git a/lib/config.cc b/lib/config.cc
index 99fcda1f..47160af1 100644
--- a/lib/config.cc
+++ b/lib/config.cc
@@ -369,6 +369,8 @@ _notmuch_config_key_to_string (notmuch_config_key_t key) {
return "search.exclude_tags";
case NOTMUCH_CONFIG_NEW_TAGS:
return "new.tags";
+ case NOTMUCH_CONFIG_NEW_IGNORE:
+ return "new.ignore";
case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS:
return "maildir.synchronize_flags";
case NOTMUCH_CONFIG_PRIMARY_EMAIL:
@@ -401,6 +403,7 @@ _notmuch_config_default (void *ctx, notmuch_config_key_t key) {
return "inbox;unread";
case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS:
return "true";
+ case NOTMUCH_CONFIG_NEW_IGNORE:
case NOTMUCH_CONFIG_USER_NAME:
case NOTMUCH_CONFIG_PRIMARY_EMAIL:
case NOTMUCH_CONFIG_OTHER_EMAIL:
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 377831ea..95b2180f 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -2427,6 +2427,7 @@ typedef enum _notmuch_config_key {
NOTMUCH_CONFIG_DATABASE_PATH = NOTMUCH_CONFIG_FIRST,
NOTMUCH_CONFIG_EXCLUDE_TAGS,
NOTMUCH_CONFIG_NEW_TAGS,
+ NOTMUCH_CONFIG_NEW_IGNORE,
NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS,
NOTMUCH_CONFIG_PRIMARY_EMAIL,
NOTMUCH_CONFIG_OTHER_EMAIL,
diff --git a/test/T590-libconfig.sh b/test/T590-libconfig.sh
index 6eaec101..24f03ba7 100755
--- a/test/T590-libconfig.sh
+++ b/test/T590-libconfig.sh
@@ -303,6 +303,7 @@ cat <<'EOF' >EXPECTED
MAIL_DIR
inbox;unread
+NULL
true
NULL
NULL
--
2.29.2
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org