diff options
| author | David Bremner <david@tethera.net> | 2020-08-08 11:16:52 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-02-06 19:23:28 -0400 |
| commit | d613d10ddd5948b4fa5a186fc54752047b25023d (patch) | |
| tree | a25f5bcc8eddde813a87da0029cd17364ae32676 /test/T750-user-header.sh | |
| parent | 8588719eb1bb14367464214f304b6f93452124c7 (diff) | |
CLI/{search,address}: convert to new configuration framework
Since we are already passing a search context around as a kind of
parameter block, add a new talloc context to that to replace relying
on 'config'.
Convert notmuch-search and notmuch-address at the same time, because
they share some code.
Add a test to make sure we don't break passing configuration as a
command line argument.
Diffstat (limited to 'test/T750-user-header.sh')
| -rwxr-xr-x | test/T750-user-header.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/T750-user-header.sh b/test/T750-user-header.sh index 204c052a..ff554b06 100755 --- a/test/T750-user-header.sh +++ b/test/T750-user-header.sh @@ -108,4 +108,22 @@ MAIL_DIR/new/04:2, EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "index user header, config from file" +field_name="Test" +printf "\n[index]\nheader.${field_name} = List-Id\n" >> notmuch-config +notmuch reindex '*' +notmuch search --output=files ${field_name}:notmuch | notmuch_search_files_sanitize | sort > OUTPUT +cat <<EOF > EXPECTED +MAIL_DIR/bar/baz/05:2, +MAIL_DIR/bar/baz/23:2, +MAIL_DIR/bar/baz/24:2, +MAIL_DIR/bar/cur/20:2, +MAIL_DIR/bar/new/21:2, +MAIL_DIR/bar/new/22:2, +MAIL_DIR/foo/cur/08:2, +MAIL_DIR/foo/new/03:2, +MAIL_DIR/new/04:2, +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done |
