mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
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:
parent
baf1202fbc
commit
b860be6a76
3 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -335,6 +335,7 @@ cat <<'EOF' >EXPECTED
|
||||||
MAIL_DIR
|
MAIL_DIR
|
||||||
|
|
||||||
inbox;unread
|
inbox;unread
|
||||||
|
NULL
|
||||||
true
|
true
|
||||||
NULL
|
NULL
|
||||||
NULL
|
NULL
|
||||||
|
|
Loading…
Reference in a new issue