]> git.notmuchmail.org Git - notmuch/blobdiff - test/T650-regexp-query.sh
gmime-cleanup: simplify T355-smime.sh
[notmuch] / test / T650-regexp-query.sh
index 31b3d036eba06ff4f6f917f323e2d9d143b4cd6e..92334ba0d78f1e8ed789672d8535de7c602f3f99 100755 (executable)
@@ -77,6 +77,17 @@ test_expect_equal_file cworth.msg-ids OUTPUT
 test_begin_subtest "xapian wildcard search for subject:"
 test_expect_equal $(notmuch count 'subject:count*') 1
 
+add_message '[from]="and"' '[subject]="and-and-and"'
+printf "id:$gen_msg_id\n" > EXPECTED
+
+test_begin_subtest "quoted xapian keyword search for from:"
+notmuch search --output=messages 'from:"and"' > OUTPUT
+test_expect_equal_file EXPECTED OUTPUT
+
+test_begin_subtest "quoted xapian keyword search for subject:"
+notmuch search --output=messages 'subject:"and-and-and"' > OUTPUT
+test_expect_equal_file EXPECTED OUTPUT
+
 test_begin_subtest "regexp from search, case sensitive"
 notmuch search --output=messages from:/carl/ > OUTPUT
 test_expect_equal_file /dev/null OUTPUT