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 57eedfb7..443dc3a6 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 5ffe967b..97f8fdc7 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 -- 2.29.2 _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org