[PATCH] test: do folder-based search with a single-term path after moving message
authorPieter Praet <pieter@praet.org>
Fri, 13 May 2011 08:06:57 +0000 (10:06 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:14 +0000 (09:38 -0800)
b4/5e3b1073ab73670bff2bd2a51a6013d6c26113 [new file with mode: 0644]

diff --git a/b4/5e3b1073ab73670bff2bd2a51a6013d6c26113 b/b4/5e3b1073ab73670bff2bd2a51a6013d6c26113
new file mode 100644 (file)
index 0000000..f1c66d8
--- /dev/null
@@ -0,0 +1,81 @@
+Return-Path: <pieter@praet.org>\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 E1919429E21\r
+       for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:07:24 -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 QNh2l9TcCgJA for <notmuch@notmuchmail.org>;\r
+       Fri, 13 May 2011 01:07:23 -0700 (PDT)\r
+Received: from mail-ww0-f45.google.com (mail-ww0-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
+ 5177C431FB6   for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:07:23 -0700\r
+ (PDT)\r
+Received: by wwi36 with SMTP id 36so2079721wwi.2\r
+       for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:07:22 -0700 (PDT)\r
+Received: by 10.227.43.9 with SMTP id u9mr1110469wbe.74.1305274041881;\r
+       Fri, 13 May 2011 01:07:21 -0700 (PDT)\r
+Received: from localhost (54.209-242-81.adsl-dyn.isp.belgacom.be\r
+       [81.242.209.54])\r
+       by mx.google.com with ESMTPS id ca12sm1216839wbb.19.2011.05.13.01.07.20\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 13 May 2011 01:07:21 -0700 (PDT)\r
+From: Pieter Praet <pieter@praet.org>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH] test: do folder-based search with a single-term path after\r
+       moving message\r
+Date: Fri, 13 May 2011 10:06:57 +0200\r
+Message-Id: <1305274017-19538-1-git-send-email-pieter@praet.org>\r
+X-Mailer: git-send-email 1.7.4.1\r
+In-Reply-To: <87fwojhpmx.fsf@servo.factory.finestructure.net>\r
+References: <87fwojhpmx.fsf@servo.factory.finestructure.net>\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: Fri, 13 May 2011 08:07:25 -0000\r
+\r
+When moving mail to a different folder, there appear to be residual\r
+incorrect "folder:" terms.\r
+\r
+This test exposes an existing bug, so is currently failing.\r
+\r
+Signed-off-by: Pieter Praet <pieter@praet.org>\r
+---\r
+ test/search-by-folder |    4 ++++\r
+ 1 files changed, 4 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/search-by-folder b/test/search-by-folder\r
+index 162158c..62767fb 100755\r
+--- a/test/search-by-folder\r
++++ b/test/search-by-folder\r
+@@ -35,6 +35,10 @@ notmuch new\r
+ output=$(notmuch search folder:bad/news | notmuch_search_sanitize)\r
+ test_expect_equal "$output" ""\r
\r
++test_begin_subtest "After rename, old single-term path returns nothing"\r
++output=$(notmuch search folder:news | notmuch_search_sanitize)\r
++test_expect_equal_failure "$output" ""\r
++\r
+ test_begin_subtest "After rename, new path returns result"\r
+ output=$(notmuch search folder:bad/olds | notmuch_search_sanitize)\r
+ test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Bears (inbox unread)"\r
+-- \r
+1.7.4.1\r
+\r