#!/usr/bin/env bash test_description="thread fusing" . $(dirname "$0")/test-lib.sh || exit 1 add_email_corpus threading test_begin_subtest "all messages are indexed" notmuch search --output=messages folder:thread-fusing | sort > OUTPUT cat < EXPECTED id:5422.1299798393@alphaville.usa.hp.com id:8162.1298993875@alphaville.dokosmarshall.org id:87wrkidfrh.fsf@pinto.chemeng.ucl.ac.uk EOF test_expect_equal_file EXPECTED OUTPUT test_begin_subtest "Two threads are detected" test_subtest_known_broken output=$(notmuch search to:org-mode | wc -l) test_expect_equal "${output}" 2 test_done