diff options
| author | David Bremner <david@tethera.net> | 2019-02-25 22:10:29 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2019-05-25 07:21:13 -0300 |
| commit | adb53b073791f710b93a8fc755b6b7b606bf7fd1 (patch) | |
| tree | f51eeba8b63bb72c3976e3a27764cb202af5b3ff /test | |
| parent | 75bdce79527571c12c5de0c630747d6262b73fbd (diff) | |
lib/database: index user headers.
This essentially involves calling _notmuch_message_gen_terms once for
each user defined header.
Diffstat (limited to 'test')
| -rwxr-xr-x | test/T750-user-header.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/T750-user-header.sh b/test/T750-user-header.sh index 2d6cc60b..204c052a 100755 --- a/test/T750-user-header.sh +++ b/test/T750-user-header.sh @@ -91,4 +91,21 @@ Query((Tmail AND (XUList:notmuchmail@1 PHRASE 2 XUList:org@2))) EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "index user header" +notmuch config set index.header.List "List-Id" +notmuch reindex '*' +notmuch search --output=files List: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 |
