X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT670-duplicate-mid.sh;h=4e5672abc4e880a1b6c536366d5936d03d7c373b;hb=00cdfe10717020423870fdaf56e973db9aba9f5a;hp=c198c506378ca077d75d0213008a373dc5826464;hpb=7ac96b149f5a0e5c03b64856d7c20789dab3c628;p=notmuch diff --git a/test/T670-duplicate-mid.sh b/test/T670-duplicate-mid.sh index c198c506..4e5672ab 100755 --- a/test/T670-duplicate-mid.sh +++ b/test/T670-duplicate-mid.sh @@ -47,6 +47,16 @@ EOF notmuch search --output=files subject:'"message 2"' | notmuch_dir_sanitize > OUTPUT test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest 'Regexp search for second subject' +test_subtest_known_broken +cat <EXPECTED +MAIL_DIR/copy0 +MAIL_DIR/copy1 +MAIL_DIR/copy2 +EOF +notmuch search --output=files 'subject:"/message 2/"' | notmuch_dir_sanitize > OUTPUT +test_expect_equal_file EXPECTED OUTPUT + add_message '[id]="duplicate"' '[body]="sekrit" [filename]=copy3' test_begin_subtest 'search for body in duplicate file' cat <EXPECTED @@ -78,6 +88,7 @@ output=$(notmuch show --body=false --format=json id:duplicate | notmuch_json_show_sanitize | sed 's/message [0-9]/A_SUBJECT/') expected='[[[{ "id": "XXXXX", + "crypto": {}, "match": true, "excluded": false, "filename": [