From b860be6a765b421f755a7c1b054f6b9a39b129c0 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Fri, 1 Jan 2021 09:01:24 -0400 Subject: [PATCH] lib/config: add NOTMUCH_CONFIG_NEW_IGNORE 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 fe67ef41..4c0cfe92 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -394,6 +394,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: @@ -426,6 +428,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 4e5312ad..5ec14c38 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 ab439078..4edc53f1 100755 --- a/test/T590-libconfig.sh +++ b/test/T590-libconfig.sh @@ -335,6 +335,7 @@ cat <<'EOF' >EXPECTED MAIL_DIR inbox;unread +NULL true NULL NULL