aboutsummaryrefslogtreecommitdiff
path: root/test/T356-protected-headers.sh
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-08-29 11:38:53 -0400
committerDavid Bremner <david@tethera.net>2019-09-01 08:45:30 -0300
commit9829533e92f84ff151279e5202e0420bc70a8863 (patch)
tree2a6f5005c69c8a1b29b7afda247674e03bfe1363 /test/T356-protected-headers.sh
parentc61e22d5cb9a7e5b03f9fcdb9911b4b4a641af2b (diff)
index: avoid indexing legacy-display parts
When we notice a legacy-display part during indexing, it makes more sense to avoid indexing it as part of the message body. Given that the protected subject will already be indexed, there is no need to index this part at all, so we skip over it. If this happens during indexing, we set a property on the message: index.repaired=skip-protected-headers-legacy-display Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'test/T356-protected-headers.sh')
-rwxr-xr-xtest/T356-protected-headers.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/T356-protected-headers.sh b/test/T356-protected-headers.sh
index 867b8722..925805df 100755
--- a/test/T356-protected-headers.sh
+++ b/test/T356-protected-headers.sh
@@ -148,12 +148,10 @@ test_json_nodes <<<"$output" \
'no_legacy_display:["original"]["body"][0]["content"][1]["content-type"]="text/plain"'
test_begin_subtest "do not treat legacy-display part as body when indexing"
-test_subtest_known_broken
output=$(notmuch search --output=messages body:interrupting)
test_expect_equal "$output" ''
test_begin_subtest "identify message that had a legacy display part skipped during indexing"
-test_subtest_known_broken
output=$(notmuch search --output=messages property:index.repaired=skip-protected-headers-legacy-display)
test_expect_equal "$output" id:protected-with-legacy-display@crypto.notmuchmail.org