[PATCH v2 2/7] test: for the new query from stdin functionality
authormarkwalters1009 <markwalters1009@gmail.com>
Sat, 24 Nov 2012 13:20:51 +0000 (13:20 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:50:49 +0000 (09:50 -0800)
12/803c567d3fda14ad5914d47b8e5ba0df8b1363 [new file with mode: 0644]

diff --git a/12/803c567d3fda14ad5914d47b8e5ba0df8b1363 b/12/803c567d3fda14ad5914d47b8e5ba0df8b1363
new file mode 100644 (file)
index 0000000..b974449
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <markwalters1009@gmail.com>\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 4DF96431FBF\r
+       for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 05:21:12 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       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 JH8ayM7VB-54 for <notmuch@notmuchmail.org>;\r
+       Sat, 24 Nov 2012 05:21:11 -0800 (PST)\r
+Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
+ [74.125.82.45])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 8C46B431FAF   for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 05:21:06 -0800\r
+ (PST)\r
+Received: by mail-wg0-f45.google.com with SMTP id dq11so3973547wgb.2\r
+       for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 05:21:05 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=Bt32qD1QMGGGyalCx10DSAJVfr5+8PuThGD3aztG5Bw=;\r
+       b=xIl9PMv8Z/FmOiX5R3pmg9tDsW+Cl4UUzvidEGHNBbQYrQ5tGxlatArjxdD9jCeI4Q\r
+       fS07+mv+eBMN7cVnZvyRZ4VJQfrA8T91T/RUb6IEZ7SVmSfp8ILg3G7yi5HV5FBetjUq\r
+       kj6uCT1LR/g0202+UfK1orN5jTnzLjUR7pIJvDCOLsEX9nziyLbxQkyRJjCksPDH5VuO\r
+       MXio+Av2xtnFQpw2Kgydyc/Bbe4+jT6QF0vmvnw6dvEslBn545T+IRnYv0CrouxnL0B5\r
+       tAuL2dP+0vW2DnH57hu+d5LkmN2/A1TY70WBwsii+B2bLMxpZ2NFsCB1eu3T76GFFBec\r
+       E22g==\r
+Received: by 10.180.86.36 with SMTP id m4mr1017631wiz.5.1353763265379;\r
+       Sat, 24 Nov 2012 05:21:05 -0800 (PST)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPS id fh10sm14257762wib.3.2012.11.24.05.21.04\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sat, 24 Nov 2012 05:21:04 -0800 (PST)\r
+From: markwalters1009 <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 2/7] test: for the new query from stdin functionality\r
+Date: Sat, 24 Nov 2012 13:20:51 +0000\r
+Message-Id: <1353763256-32336-3-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1353763256-32336-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1353763256-32336-1-git-send-email-markwalters1009@gmail.com>\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: Sat, 24 Nov 2012 13:21:12 -0000\r
+\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+\r
+---\r
+ test/tagging |    9 +++++++++\r
+ 1 files changed, 9 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/tagging b/test/tagging\r
+index 980ff92..eb7d61c 100755\r
+--- a/test/tagging\r
++++ b/test/tagging\r
+@@ -19,6 +19,15 @@ test_expect_equal "$output" "\\r
+ thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag3 unread)\r
+ thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag3 unread)"\r
+ \r
++test_begin_subtest "Adding tags. Query from stdin"\r
++echo -n "subject:One" | notmuch tag +intag1 +intag2 -- -\r
++echo DONE\r
++output=$(notmuch search \* | notmuch_search_sanitize)\r
++test_expect_equal "$output" "\\r
++thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; One (inbox intag1 intag2 tag3 unread)\r
++thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag3 unread)"\r
++notmuch tag -intag1 -intag2 \*\r
++\r
+ test_expect_code 1 "No tag operations" 'notmuch tag One'\r
+ test_expect_code 1 "No query" 'notmuch tag +tag2'\r
+ \r
+-- \r
+1.7.9.1\r
+\r