aboutsummaryrefslogtreecommitdiff
path: root/test/T510-thread-replies.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2018-08-30 08:29:11 -0300
committerDavid Bremner <david@tethera.net>2018-09-06 08:07:13 -0300
commitea08032ae40119b24ef22c1c30aaf631cda02dd0 (patch)
treec7966451c7dc0ffbccd2f772acfb60a51de30419 /test/T510-thread-replies.sh
parent46dce33abc82ea6ebd3be2e0887506af4185c739 (diff)
test: add known broken test for good In-Reply-To / bad References
The current scheme of choosing the replyto (i.e. the default parent for threading purposes) does not work well for mailers that put the oldest Reference last.
Diffstat (limited to 'test/T510-thread-replies.sh')
-rwxr-xr-xtest/T510-thread-replies.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/T510-thread-replies.sh b/test/T510-thread-replies.sh
index 915e68ef..8ff2ade9 100755
--- a/test/T510-thread-replies.sh
+++ b/test/T510-thread-replies.sh
@@ -209,4 +209,18 @@ End of search results.
EOF
test_expect_equal_file EXPECTED OUTPUT
+test_begin_subtest "trusting reply-to (tree view)"
+test_subtest_known_broken
+test_emacs '(notmuch-tree "id:B00-root@example.org")
+ (notmuch-test-wait)
+ (test-output)
+ (delete-other-windows)'
+cat <<EOF > EXPECTED
+ 2016-06-17 Alice ┬►root message (inbox unread)
+ 2016-06-18 Alice ╰┬►child message (inbox unread)
+ 2016-06-18 Alice ╰─►grand-child message (inbox unread)
+End of search results.
+EOF
+test_expect_equal_file EXPECTED OUTPUT
+
test_done