Attempting to duplicate problem described in id:EA2PR84MB3835152D92081F4B41C31B01C0E32@EA2PR84MB3835.NAMPRD84.PROD.OUTLOOK.COM --- test/T100-search-by-folder.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/T100-search-by-folder.sh b/test/T100-search-by-folder.sh index b4f6294e..ecb2c6fa 100755 --- a/test/T100-search-by-folder.sh +++ b/test/T100-search-by-folder.sh @@ -18,6 +18,21 @@ test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; T thread:XXX 2001-01-05 [1/1(2)] Notmuch Test Suite; Bears (inbox unread) thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Bites, stings, sad feelings (inbox unread)" +test_begin_subtest "Search folder containing duplicate" +notmuch search folder:bad/news |notmuch_search_sanitize> OUTPUT +cat <<EOF > EXPECTED +thread:XXX 2001-01-05 [1/1(2)] Notmuch Test Suite; Bears (inbox unread) +EOF +test_expect_equal_file EXPECTED OUTPUT + +test_begin_subtest "Search folder containing duplicate (output=messages)" +notmuch search --output=messages folder:bad/news > OUTPUT +cat <<EOF > EXPECTED +msg-003@notmuch-test-suite +EOF +test_expect_equal_file EXPECTED OUTPUT + +test_done test_begin_subtest "search by path: specification (multiple)" output=$(notmuch search path:bad path:bad/news path:things/bad | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; To the bone (inbox unread) -- 2.45.2 _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org