X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT670-duplicate-mid.sh;h=fd7df05774c4600ade48746e8fa49e0a226791dc;hb=591388ccd1d7c631d1f98694543d1a80fc521d9f;hp=c198c506378ca077d75d0213008a373dc5826464;hpb=a863de1e43ee34f6f5794a2759fdceb287e851aa;p=notmuch diff --git a/test/T670-duplicate-mid.sh b/test/T670-duplicate-mid.sh index c198c506..fd7df057 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