[PATCH 1/5] test: Fix from/to search test queries
authorAustin Clements <amdragon@MIT.EDU>
Mon, 16 Jun 2014 02:40:30 +0000 (22:40 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:03:13 +0000 (10:03 -0800)
28/19af5e26a1de9d3502e6dba5ecbf6f18fd28cf [new file with mode: 0644]

diff --git a/28/19af5e26a1de9d3502e6dba5ecbf6f18fd28cf b/28/19af5e26a1de9d3502e6dba5ecbf6f18fd28cf
new file mode 100644 (file)
index 0000000..0c769a7
--- /dev/null
@@ -0,0 +1,106 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 0F203431FC2\r
+       for <notmuch@notmuchmail.org>; Sun, 15 Jun 2014 19:40:53 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id dNzw-LMPwRR1 for <notmuch@notmuchmail.org>;\r
+       Sun, 15 Jun 2014 19:40:48 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-5.mit.edu (dmz-mailsec-scanner-5.mit.edu\r
+       [18.7.68.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5F136431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 15 Jun 2014 19:40:48 -0700 (PDT)\r
+X-AuditID: 12074422-f79376d000000c58-be-539e592ff10a\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+       (using TLS with cipher AES256-SHA (256/256 bits))\r
+       (Client did not present a certificate)\r
+       by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id A1.DD.03160.F295E935; Sun, 15 Jun 2014 22:40:47 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id s5G2ejfN014907; \r
+       Sun, 15 Jun 2014 22:40:46 -0400\r
+Received: from drake.dyndns.org\r
+       (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+       [216.15.114.40]) (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s5G2eivE003365\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Sun, 15 Jun 2014 22:40:45 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1WwMqi-0004H8-9U; Sun, 15 Jun 2014 22:40:44 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/5] test: Fix from/to search test queries\r
+Date: Sun, 15 Jun 2014 22:40:30 -0400\r
+Message-Id: <1402886434-16169-2-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 2.0.0.rc2\r
+In-Reply-To: <1402886434-16169-1-git-send-email-amdragon@mit.edu>\r
+References: <1402886434-16169-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsUixG6nrqsfOS/Y4M5VU4vrN2cyOzB6PFt1\r
+       izmAMYrLJiU1J7MstUjfLoErY2V3D0vBf56KhtPbmBsYG7m7GDk4JARMJE7eSe1i5AQyxSQu\r
+       3FvP1sXIxSEkMJtJYn/LPxYIZyOjRMui60wgVUICd5gkjuyNgkjMZZQ4+O4KI0iCTUBDYtv+\r
+       5WC2iIC0xM67s1lBNjALqEn86VIBCQsLWElMPNkCVsIioCqxdPYRRpASXgEHieknYiGOUJK4\r
+       d2UOWAmngKPExNWn2CHWOkj8O3ODaQIj/wJGhlWMsim5Vbq5iZk5xanJusXJiXl5qUW6pnq5\r
+       mSV6qSmlmxjBAeOitIPx50GlQ4wCHIxKPLwTHOcFC7EmlhVX5h5ilORgUhLlZQYJ8SXlp1Rm\r
+       JBZnxBeV5qQWH2KU4GBWEuG19wHK8aYkVlalFuXDpKQ5WJTEed9aWwULCaQnlqRmp6YWpBbB\r
+       ZGU4OJQkeBkigBoFi1LTUyvSMnNKENJMHJwgw3mAhv8LBxleXJCYW5yZDpE/xagoJc7LCdIs\r
+       AJLIKM2D64VF9CtGcaBXhHm/g7TzAJMBXPcroMFMQINvLp4FMrgkESEl1cDokbbi75O1Eyce\r
+       OcT5ijtf2iBBNvV8flHH9dXv1jFuuFQ4fc/uQ8u2zqhVdth/Ql7cUjduI4u21yfmO3xV9ya9\r
+       WTwz3s5qJaOyisr0La4+3m2vslr0bFQYrJfUxDEpfTUrvC+p6pf+qG3Gu+h9IY7Hb02apW5/\r
+       XG7ZkoylbLVpXj+endzTcJ5ZiaU4I9FQi7moOBEAnY7zdMMCAAA=\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 16 Jun 2014 02:40:53 -0000\r
+\r
+Two of the search tests for "from" and "to" queries were clearly\r
+trying to search for prefixed phrases, but forgot to shell quote the\r
+phrases.  Fix this by quoting them correctly.\r
+---\r
+ test/T080-search.sh | 4 ++--\r
+ 1 file changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/test/T080-search.sh b/test/T080-search.sh\r
+index a7a0b18..4f0e16c 100755\r
+--- a/test/T080-search.sh\r
++++ b/test/T080-search.sh\r
+@@ -59,7 +59,7 @@ test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] searchbyfrom@example.\r
\r
+ test_begin_subtest "Search by from: (name)"\r
+ add_message '[subject]="search by from (name)"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' '[from]="Search By From Name <test@example.com>"'\r
+-output=$(notmuch search from:"Search By From Name" | notmuch_search_sanitize)\r
++output=$(notmuch search 'from:"Search By From Name"' | notmuch_search_sanitize)\r
+ test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Search By From Name; search by from (name) (inbox unread)"\r
\r
+ test_begin_subtest "Search by to: (address)"\r
+@@ -69,7 +69,7 @@ test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; s\r
\r
+ test_begin_subtest "Search by to: (name)"\r
+ add_message '[subject]="search by to (name)"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' '[to]="Search By To Name <test@example.com>"'\r
+-output=$(notmuch search to:"Search By To Name" | notmuch_search_sanitize)\r
++output=$(notmuch search 'to:"Search By To Name"' | notmuch_search_sanitize)\r
+ test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; search by to (name) (inbox unread)"\r
\r
+ test_begin_subtest "Search by subject: (phrase)"\r
+-- \r
+2.0.0.rc2\r
+\r