[PATCH 1/2] test: start threading test corpus

David Bremner david at tethera.net
Sun Jul 8 05:24:14 PDT 2018


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 <alice at example.org>
+To: Daniel <daniel at example.org>
+Subject: child message
+Message-ID: <mid-child at example.org>
+In-Reply-To: <mid-real-root at example.org>
+References:  <mid-real-root at 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 <mallory at example.org>
+To: Daniel <daniel at example.org>
+Subject: fake root message
+Message-ID: <mid-fake-message-root at example.org>
+In-Reply-to: <nonexistent-message at example.org>
+References:  <mid-real-root at example.org> <nonexistent-message at 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 <alice at example.org>
+To: Daniel <daniel at example.org>
+Subject: root message
+Message-ID: <mid-real-root at example.org>
+Date: Thu, 16 Jun 2016 22:14:41 -0400
+
+This message has no reply-to
-- 
2.18.0



More information about the notmuch mailing list