return "search.authors_matched_separator";
case NOTMUCH_CONFIG_INDEX_AS_TEXT:
return "index.as_text";
+ case NOTMUCH_CONFIG_GIT_FAIL_ON_MISSING:
+ return "git.fail_on_missing";
+ case NOTMUCH_CONFIG_GIT_METADATA_PREFIX:
+ return "git.metadata_prefix";
+ case NOTMUCH_CONFIG_GIT_REF:
+ return "git.ref";
default:
return NULL;
}
case NOTMUCH_CONFIG_NEW_TAGS:
return "unread;inbox";
case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS:
+ case NOTMUCH_CONFIG_GIT_FAIL_ON_MISSING:
return "true";
case NOTMUCH_CONFIG_USER_NAME:
name = getenv ("NAME");
return ", ";
case NOTMUCH_CONFIG_AUTHORS_MATCHED_SEPARATOR:
return "| ";
+ case NOTMUCH_CONFIG_GIT_METADATA_PREFIX:
+ return "_notmuch_metadata";
+ case NOTMUCH_CONFIG_GIT_REF:
+ return "refs/heads/master";
case NOTMUCH_CONFIG_EXTRA_HEADERS:
case NOTMUCH_CONFIG_HOOK_DIR:
case NOTMUCH_CONFIG_BACKUP_DIR:
NOTMUCH_CONFIG_INDEX_AS_TEXT,
NOTMUCH_CONFIG_AUTHORS_SEPARATOR,
NOTMUCH_CONFIG_AUTHORS_MATCHED_SEPARATOR,
+ NOTMUCH_CONFIG_GIT_FAIL_ON_MISSING,
+ NOTMUCH_CONFIG_GIT_METADATA_PREFIX,
+ NOTMUCH_CONFIG_GIT_REF,
NOTMUCH_CONFIG_LAST
} notmuch_config_key_t;
database.path=MAIL_DIR
foo.list=this;is another;list value;
foo.string=this is another string value
+git.fail_on_missing=true
+git.metadata_prefix=_notmuch_metadata
+git.ref=refs/heads/master
index.as_text=
maildir.synchronize_flags=true
new.ignore=
database.hook_dir
database.mail_root=MAIL_DIR
database.path
+git.fail_on_missing=true
+git.metadata_prefix=_notmuch_metadata
+git.ref=refs/heads/master
index.as_text=
maildir.synchronize_flags=true
new.ignore=
database.hook_dir
database.mail_root
database.path
+git.fail_on_missing
+git.metadata_prefix
+git.ref
maildir.synchronize_flags
new.tags
search.authors_matched_separator
13: ''
14: ', '
15: '| '
+16: 'true'
+17: '_notmuch_metadata'
+18: 'refs/heads/master'
== stderr ==
EOF
unset MAILDIR
13: 'text/'
14: ', '
15: '| '
+16: 'true'
+17: '_notmuch_metadata'
+18: 'refs/heads/master'
== stderr ==
EOF
test_expect_equal_file EXPECTED OUTPUT
13: ''
14: ', '
15: '| '
+16: 'true'
+17: '_notmuch_metadata'
+18: 'refs/heads/master'
== stderr ==
EOF
test_expect_equal_file EXPECTED OUTPUT.clean
database.hook_dir MAIL_DIR/.notmuch/hooks
database.mail_root MAIL_DIR
database.path MAIL_DIR
+git.fail_on_missing true
+git.metadata_prefix _notmuch_metadata
+git.ref refs/heads/master
index.as_text text/
key with spaces value, with, spaces!
maildir.synchronize_flags true