aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-06-07 23:11:49 -0300
committerDavid Bremner <david@tethera.net>2017-07-01 12:32:27 -0300
commit6dd00d64863dfc0563877ca7899231b8c3058c49 (patch)
tree143c3f199ff195d2f3036f6aa42e570b56d4ced4 /test
parent64f81f95a19b28681a74a58b8cae205bff885755 (diff)
lib/index: add simple html filter
The filter just drops all (HTML) tags. As an enabling change, pass the content type to the filter constructor so we can decide which scanner to user.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T680-html-indexing.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/T680-html-indexing.sh b/test/T680-html-indexing.sh
index 5e9cc4cb..74f33708 100755
--- a/test/T680-html-indexing.sh
+++ b/test/T680-html-indexing.sh
@@ -5,10 +5,13 @@ test_description="indexing of html parts"
add_email_corpus html
test_begin_subtest 'embedded images should not be indexed'
-test_subtest_known_broken
notmuch search kwpza7svrgjzqwi8fhb2msggwtxtwgqcxp4wbqr4wjddstqmeqa7 > OUTPUT
test_expect_equal_file /dev/null OUTPUT
+test_begin_subtest 'ignore > in attribute text'
+notmuch search swordfish | notmuch_search_sanitize > OUTPUT
+test_expect_equal_file /dev/null OUTPUT
+
test_begin_subtest 'non tag text should be indexed'
notmuch search hunter2 | notmuch_search_sanitize > OUTPUT
cat <<EOF > EXPECTED