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
This commit is contained in:
David Bremner 2021-01-01 09:01:24 -04:00
parent baf1202fbc
commit b860be6a76
3 changed files with 5 additions and 0 deletions

View file

@ -394,6 +394,8 @@ _notmuch_config_key_to_string (notmuch_config_key_t key) {
return "search.exclude_tags"; return "search.exclude_tags";
case NOTMUCH_CONFIG_NEW_TAGS: case NOTMUCH_CONFIG_NEW_TAGS:
return "new.tags"; return "new.tags";
case NOTMUCH_CONFIG_NEW_IGNORE:
return "new.ignore";
case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS: case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS:
return "maildir.synchronize_flags"; return "maildir.synchronize_flags";
case NOTMUCH_CONFIG_PRIMARY_EMAIL: case NOTMUCH_CONFIG_PRIMARY_EMAIL:
@ -426,6 +428,7 @@ _notmuch_config_default (void *ctx, notmuch_config_key_t key) {
return "inbox;unread"; return "inbox;unread";
case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS: case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS:
return "true"; return "true";
case NOTMUCH_CONFIG_NEW_IGNORE:
case NOTMUCH_CONFIG_USER_NAME: case NOTMUCH_CONFIG_USER_NAME:
case NOTMUCH_CONFIG_PRIMARY_EMAIL: case NOTMUCH_CONFIG_PRIMARY_EMAIL:
case NOTMUCH_CONFIG_OTHER_EMAIL: case NOTMUCH_CONFIG_OTHER_EMAIL:

View file

@ -2427,6 +2427,7 @@ typedef enum _notmuch_config_key {
NOTMUCH_CONFIG_DATABASE_PATH = NOTMUCH_CONFIG_FIRST, NOTMUCH_CONFIG_DATABASE_PATH = NOTMUCH_CONFIG_FIRST,
NOTMUCH_CONFIG_EXCLUDE_TAGS, NOTMUCH_CONFIG_EXCLUDE_TAGS,
NOTMUCH_CONFIG_NEW_TAGS, NOTMUCH_CONFIG_NEW_TAGS,
NOTMUCH_CONFIG_NEW_IGNORE,
NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS, NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS,
NOTMUCH_CONFIG_PRIMARY_EMAIL, NOTMUCH_CONFIG_PRIMARY_EMAIL,
NOTMUCH_CONFIG_OTHER_EMAIL, NOTMUCH_CONFIG_OTHER_EMAIL,

View file

@ -335,6 +335,7 @@ cat <<'EOF' >EXPECTED
MAIL_DIR MAIL_DIR
inbox;unread inbox;unread
NULL
true true
NULL NULL
NULL NULL