These are not really broken, but one of the messages is in reply to a
non-existent message. This currently causes the wrong message to be
chosen as root
---
 test/corpora/threading/ghost-root/child     | 9 +++++++++
 test/corpora/threading/ghost-root/fake-root | 9 +++++++++
 test/corpora/threading/ghost-root/real-root | 7 +++++++
 3 files changed, 25 insertions(+)
 create mode 100644 test/corpora/threading/ghost-root/child
 create mode 100644 test/corpora/threading/ghost-root/fake-root
 create mode 100644 test/corpora/threading/ghost-root/real-root

diff --git a/test/corpora/threading/ghost-root/child 
b/test/corpora/threading/ghost-root/child
new file mode 100644
index 00000000..a8dc245d
--- /dev/null
+++ b/test/corpora/threading/ghost-root/child
@@ -0,0 +1,9 @@
+From: Alice <al...@example.org>
+To: Daniel <dan...@example.org>
+Subject: child message
+Message-ID: <mid-ch...@example.org>
+In-Reply-To: <mid-real-r...@example.org>
+References:  <mid-real-r...@example.org>
+Date: Fri, 17 Jun 2016 22:14:41 -0400
+
+
diff --git a/test/corpora/threading/ghost-root/fake-root 
b/test/corpora/threading/ghost-root/fake-root
new file mode 100644
index 00000000..11928537
--- /dev/null
+++ b/test/corpora/threading/ghost-root/fake-root
@@ -0,0 +1,9 @@
+From: Mallory <mall...@example.org>
+To: Daniel <dan...@example.org>
+Subject: fake root message
+Message-ID: <mid-fake-message-r...@example.org>
+In-Reply-to: <nonexistent-mess...@example.org>
+References:  <mid-real-r...@example.org> <nonexistent-mess...@example.org>
+Date: Thu, 16 Jun 2016 22:14:41 -0400
+
+This message has no reply-to
diff --git a/test/corpora/threading/ghost-root/real-root 
b/test/corpora/threading/ghost-root/real-root
new file mode 100644
index 00000000..8c4e59b3
--- /dev/null
+++ b/test/corpora/threading/ghost-root/real-root
@@ -0,0 +1,7 @@
+From: Alice <al...@example.org>
+To: Daniel <dan...@example.org>
+Subject: root message
+Message-ID: <mid-real-r...@example.org>
+Date: Thu, 16 Jun 2016 22:14:41 -0400
+
+This message has no reply-to
-- 
2.18.0

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to