[PATCH 2/6] test: add known broken test for non-email false positive.

Subject: [PATCH 2/6] test: add known broken test for non-email false positive.

Date: Sat, 5 Feb 2022 15:52:11 -0400

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


This message should parse fine, but notmuch heuristics are claiming it
is not email. It differs from a version that parses fine only in the
first line, which triggers the mbox detection code.
---
 test/T050-new.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/T050-new.sh b/test/T050-new.sh
index 6791f87c..9ef24f18 100755
--- a/test/T050-new.sh
+++ b/test/T050-new.sh
@@ -455,4 +455,12 @@ Date: Fri, 17 Jun 2016 22:14:41 -0400
 EOF
 test_expect_equal_file EXPECTED OUTPUT
 
+add_email_corpus indexing
+
+test_begin_subtest "id:87k0e9o0pu.fsf@tethera.net is indexed"
+test_subtest_known_broken
+notmuch new
+output=$(notmuch search --output=messages id:87k0e9o0pu.fsf@tethera.net)
+test_expect_equal "$output" "id:87k0e9o0pu.fsf@tethera.net"
+
 test_done
-- 
2.34.1

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: