]> git.notmuchmail.org Git - notmuch/commitdiff
lib/config: add NOTMUCH_CONFIG_NEW_IGNORE
authorDavid Bremner <david@tethera.net>
Fri, 1 Jan 2021 13:01:24 +0000 (09:01 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 6 Feb 2021 23:39:33 +0000 (19:39 -0400)
This will be needed by (at least) the conversion of notmuch-new.c to
the new config framework

lib/config.cc
lib/notmuch.h
test/T590-libconfig.sh

index fe67ef416a0d08083281d4890ed8d473155b85a4..4c0cfe9256537edb60ffdc54501cfc3ec2a106bd 100644 (file)
@@ -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:
index 4e5312ad033ea5c8a4478c296aa039e9c9554bc7..5ec14c38dd0bfa1b8ca1ce442ff9511371955818 100644 (file)
@@ -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,
index ab439078a54ec1e05ee841f6c5c9dc33e2813cb7..4edc53f129dc03c48bf8acfde1ce5fb553ea5d60 100755 (executable)
@@ -335,6 +335,7 @@ cat <<'EOF' >EXPECTED
 MAIL_DIR
 
 inbox;unread
+NULL
 true
 NULL
 NULL