From: Austin Clements <amdragon@MIT.EDU>
To: notmuch@notmuchmail.org
Subject: [PATCH 1/5] test: Fix from/to search test queries
Date: Sun, 15 Jun 2014 22:40:30 -0400 [thread overview]
Message-ID: <1402886434-16169-2-git-send-email-amdragon@mit.edu> (raw)
In-Reply-To: <1402886434-16169-1-git-send-email-amdragon@mit.edu>
Two of the search tests for "from" and "to" queries were clearly
trying to search for prefixed phrases, but forgot to shell quote the
phrases. Fix this by quoting them correctly.
---
test/T080-search.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/T080-search.sh b/test/T080-search.sh
index a7a0b18..4f0e16c 100755
--- a/test/T080-search.sh
+++ b/test/T080-search.sh
@@ -59,7 +59,7 @@ test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] searchbyfrom@example.
test_begin_subtest "Search by from: (name)"
add_message '[subject]="search by from (name)"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' '[from]="Search By From Name <test@example.com>"'
-output=$(notmuch search from:"Search By From Name" | notmuch_search_sanitize)
+output=$(notmuch search 'from:"Search By From Name"' | notmuch_search_sanitize)
test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Search By From Name; search by from (name) (inbox unread)"
test_begin_subtest "Search by to: (address)"
@@ -69,7 +69,7 @@ test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; s
test_begin_subtest "Search by to: (name)"
add_message '[subject]="search by to (name)"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' '[to]="Search By To Name <test@example.com>"'
-output=$(notmuch search to:"Search By To Name" | notmuch_search_sanitize)
+output=$(notmuch search 'to:"Search By To Name"' | notmuch_search_sanitize)
test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; search by to (name) (inbox unread)"
test_begin_subtest "Search by subject: (phrase)"
--
2.0.0.rc2
next prev parent reply other threads:[~2014-06-16 2:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-16 2:40 [PATCH 0/5] Fix adjacent and overlapping termpos Austin Clements
2014-06-16 2:40 ` Austin Clements [this message]
2014-06-16 2:40 ` [PATCH 2/5] test: Add search tests for combined name/address queries Austin Clements
2014-06-16 2:40 ` [PATCH 3/5] lib: Index name and address of from/to headers as a phrase Austin Clements
2014-06-16 2:40 ` [PATCH 4/5] test: Known-broken test for overlapping/adjacent termpos Austin Clements
2014-06-16 2:40 ` [PATCH 5/5] lib: Separate all phrases indexed by _notmuch_message_gen_terms Austin Clements
2014-06-18 21:11 ` David Bremner
2014-06-21 19:20 ` [PATCH 0/5] Fix adjacent and overlapping termpos Tomi Ollila
2014-06-22 10:02 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1402886434-16169-2-git-send-email-amdragon@mit.edu \
--to=amdragon@mit.edu \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).