[Patch v2 1/3] test: the test for the exclude code mistakenly excludes the tag "="
authorMark Walters <markwalters1009@gmail.com>
Wed, 14 Mar 2012 12:26:52 +0000 (12:26 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:29 +0000 (09:45 -0800)
61/1cab4862bddac6857ade7c1c8454156b246081 [new file with mode: 0644]

diff --git a/61/1cab4862bddac6857ade7c1c8454156b246081 b/61/1cab4862bddac6857ade7c1c8454156b246081
new file mode 100644 (file)
index 0000000..db4746b
--- /dev/null
@@ -0,0 +1,104 @@
+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 AD47B431FD6\r
+       for <notmuch@notmuchmail.org>; Wed, 14 Mar 2012 05:26:59 -0700 (PDT)\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 U5mLFeD05hbF for <notmuch@notmuchmail.org>;\r
+       Wed, 14 Mar 2012 05:26:59 -0700 (PDT)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 1CBAA431FCF\r
+       for <notmuch@notmuchmail.org>; Wed, 14 Mar 2012 05:26:58 -0700 (PDT)\r
+Received: by werm13 with SMTP id m13so1833650wer.26\r
+       for <notmuch@notmuchmail.org>; Wed, 14 Mar 2012 05:26:57 -0700 (PDT)\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
+       :mime-version:content-type:content-transfer-encoding;\r
+       bh=v79/X18bJ0gQQRWIh3D2GPPc5YO0irSjYRB/JQtptjU=;\r
+       b=0kBEAkNbJZZkQZDdUK/bd5L+fPGxNMoIdSpeT3RaR9w3R0mucScx/f2IBdZH6IJBNX\r
+       GSZbif+2QXiURx58PsDpXZ7pxXmxnchwCysMAfIKJo6V9bWfWO6puv48TGVHFVaBxbT7\r
+       bqYYP+/z8ODAxmO6V0vQJ7E09hd2ZyIi69Dab0m5dARD9mg7ZC9IafY1WyY98xk3fZmJ\r
+       Jv85cUJS8sQgTVeIMzIzcoqRuvtMLMIbbIfTT7emePgttPdHQdASTIsqB99qBh+sf/XS\r
+       EX2Kwi4KsTVS7i9tjiayU0oOZIuezdjS4Kp7jf0x0HbJwxpf96TZgqeWeSyATjnmmxX0\r
+       Ty5A==\r
+Received: by 10.216.135.141 with SMTP id u13mr1445618wei.79.1331728017831;\r
+       Wed, 14 Mar 2012 05:26:57 -0700 (PDT)\r
+Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
+ [94.192.233.223])     by mx.google.com with ESMTPS id\r
+ d7sm15991671wiz.6.2012.03.14.05.26.56 (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 14 Mar 2012 05:26:57 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [Patch v2 1/3] test: the test for the exclude code mistakenly excludes the tag "="\r
+Date: Wed, 14 Mar 2012 12:26:52 +0000\r
+Message-Id: <1331728014-32698-2-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1331728014-32698-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1331728014-32698-1-git-send-email-markwalters1009@gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: 8bit\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: Wed, 14 Mar 2012 12:26:59 -0000\r
+\r
+The tests for the exclude code in search and count use the line\r
+    notmuch config set search.exclude_tags = deleted\r
+which actually sets the exclude tags to be "=" and "deleted". Remove\r
+the "=" from this line.\r
+---\r
+ test/count  |    2 +-\r
+ test/search |    2 +-\r
+ 2 files changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/test/count b/test/count\r
+index 976fff1..b97fc06 100755\r
+--- a/test/count\r
++++ b/test/count\r
+@@ -38,7 +38,7 @@ test_expect_equal \\r
+     "`notmuch count --output=threads ${SEARCH}`"\r
\r
+ test_begin_subtest "count excluding \"deleted\" messages"\r
+-notmuch config set search.exclude_tags = deleted\r
++notmuch config set search.exclude_tags deleted\r
+ generate_message '[subject]="Not deleted"'\r
+ generate_message '[subject]="Another not deleted"'\r
+ generate_message '[subject]="Deleted"'\r
+diff --git a/test/search b/test/search\r
+index 081f60c..3e3a462 100755\r
+--- a/test/search\r
++++ b/test/search\r
+@@ -130,7 +130,7 @@ output=$(notmuch search "bödý" | notmuch_search_sanitize)\r
+ test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; utf8-message-body-subject (inbox unread)"\r
\r
+ test_begin_subtest "Exclude \"deleted\" messages from search"\r
+-notmuch config set search.exclude_tags = deleted\r
++notmuch config set search.exclude_tags deleted\r
+ generate_message '[subject]="Not deleted"'\r
+ generate_message '[subject]="Deleted"'\r
+ notmuch new > /dev/null\r
+-- \r
+1.7.9.1\r
+\r