X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT670-duplicate-mid.sh;h=c17ccb6970ac0740517c00dbaa6325e9d0e259ea;hp=c198c506378ca077d75d0213008a373dc5826464;hb=cd8006886b1c80ff556a96f1e84e3d3914067a54;hpb=040c3236afcf95bead0324a48c2e0b9cd7934993 diff --git a/test/T670-duplicate-mid.sh b/test/T670-duplicate-mid.sh index c198c506..c17ccb69 100755 --- a/test/T670-duplicate-mid.sh +++ b/test/T670-duplicate-mid.sh @@ -47,6 +47,20 @@ 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' +# Note that missing field processor support really means the test +# doesn't make sense, but it happens to pass. +if [ $NOTMUCH_HAVE_XAPIAN_FIELD_PROCESSOR -eq 1 ]; then + test_subtest_known_broken +fi +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 +92,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": [