From 7be27d3c5e86e702cfc6ac6d94eca3b07005b970 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Mon, 16 Jun 2014 22:40:30 +2000 Subject: [PATCH] [PATCH 1/5] test: Fix from/to search test queries --- 28/19af5e26a1de9d3502e6dba5ecbf6f18fd28cf | 106 ++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 28/19af5e26a1de9d3502e6dba5ecbf6f18fd28cf diff --git a/28/19af5e26a1de9d3502e6dba5ecbf6f18fd28cf b/28/19af5e26a1de9d3502e6dba5ecbf6f18fd28cf new file mode 100644 index 000000000..0c769a7e7 --- /dev/null +++ b/28/19af5e26a1de9d3502e6dba5ecbf6f18fd28cf @@ -0,0 +1,106 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 0F203431FC2 + for ; Sun, 15 Jun 2014 19:40:53 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id dNzw-LMPwRR1 for ; + Sun, 15 Jun 2014 19:40:48 -0700 (PDT) +Received: from dmz-mailsec-scanner-5.mit.edu (dmz-mailsec-scanner-5.mit.edu + [18.7.68.34]) + by olra.theworths.org (Postfix) with ESMTP id 5F136431FAE + for ; Sun, 15 Jun 2014 19:40:48 -0700 (PDT) +X-AuditID: 12074422-f79376d000000c58-be-539e592ff10a +Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) + (using TLS with cipher AES256-SHA (256/256 bits)) + (Client did not present a certificate) + by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP + id A1.DD.03160.F295E935; Sun, 15 Jun 2014 22:40:47 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id s5G2ejfN014907; + Sun, 15 Jun 2014 22:40:46 -0400 +Received: from drake.dyndns.org + (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com + [216.15.114.40]) (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s5G2eivE003365 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Sun, 15 Jun 2014 22:40:45 -0400 +Received: from amthrax by drake.dyndns.org with local (Exim 4.77) + (envelope-from ) + id 1WwMqi-0004H8-9U; Sun, 15 Jun 2014 22:40:44 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: [PATCH 1/5] test: Fix from/to search test queries +Date: Sun, 15 Jun 2014 22:40:30 -0400 +Message-Id: <1402886434-16169-2-git-send-email-amdragon@mit.edu> +X-Mailer: git-send-email 2.0.0.rc2 +In-Reply-To: <1402886434-16169-1-git-send-email-amdragon@mit.edu> +References: <1402886434-16169-1-git-send-email-amdragon@mit.edu> +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsUixG6nrqsfOS/Y4M5VU4vrN2cyOzB6PFt1 + izmAMYrLJiU1J7MstUjfLoErY2V3D0vBf56KhtPbmBsYG7m7GDk4JARMJE7eSe1i5AQyxSQu + 3FvP1sXIxSEkMJtJYn/LPxYIZyOjRMui60wgVUICd5gkjuyNgkjMZZQ4+O4KI0iCTUBDYtv+ + 5WC2iIC0xM67s1lBNjALqEn86VIBCQsLWElMPNkCVsIioCqxdPYRRpASXgEHieknYiGOUJK4 + d2UOWAmngKPExNWn2CHWOkj8O3ODaQIj/wJGhlWMsim5Vbq5iZk5xanJusXJiXl5qUW6pnq5 + mSV6qSmlmxjBAeOitIPx50GlQ4wCHIxKPLwTHOcFC7EmlhVX5h5ilORgUhLlZQYJ8SXlp1Rm + JBZnxBeV5qQWH2KU4GBWEuG19wHK8aYkVlalFuXDpKQ5WJTEed9aWwULCaQnlqRmp6YWpBbB + ZGU4OJQkeBkigBoFi1LTUyvSMnNKENJMHJwgw3mAhv8LBxleXJCYW5yZDpE/xagoJc7LCdIs + AJLIKM2D64VF9CtGcaBXhHm/g7TzAJMBXPcroMFMQINvLp4FMrgkESEl1cDokbbi75O1Eyce + OcT5ijtf2iBBNvV8flHH9dXv1jFuuFQ4fc/uQ8u2zqhVdth/Ql7cUjduI4u21yfmO3xV9ya9 + WTwz3s5qJaOyisr0La4+3m2vslr0bFQYrJfUxDEpfTUrvC+p6pf+qG3Gu+h9IY7Hb02apW5/ + XG7ZkoylbLVpXj+endzTcJ5ZiaU4I9FQi7moOBEAnY7zdMMCAAA= +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 16 Jun 2014 02:40:53 -0000 + +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 "' +-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 "' +-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 + -- 2.26.2