]> git.cworth.org Git - notmuch/blob - test/T680-html-indexing.sh
util/crypto: add information about the payload part
[notmuch] / test / T680-html-indexing.sh
1 #!/usr/bin/env bash
2 test_description="indexing of html parts"
3 . $(dirname "$0")/test-lib.sh || exit 1
4
5 add_email_corpus html
6
7 test_begin_subtest 'embedded images should not be indexed'
8 notmuch search kwpza7svrgjzqwi8fhb2msggwtxtwgqcxp4wbqr4wjddstqmeqa7 > OUTPUT
9 test_expect_equal_file /dev/null OUTPUT
10
11 test_begin_subtest 'ignore > in attribute text'
12 notmuch search swordfish | notmuch_search_sanitize > OUTPUT
13 test_expect_equal_file /dev/null OUTPUT
14
15 test_begin_subtest 'non tag text should be indexed'
16 notmuch search hunter2 | notmuch_search_sanitize > OUTPUT
17 cat <<EOF > EXPECTED
18 thread:XXX   2009-11-17 [1/1] David Bremner; test html attachment (inbox unread)
19 EOF
20 test_expect_equal_file EXPECTED OUTPUT
21
22 test_done