[PATCH 1/2] verify during thread-breakage that messages are removed as well
[notmuch-archives.git] / c1 / 373986186851390e1cace4bb38dcaabd88c642
1 Return-Path: <pieter@praet.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id B6E66431FD0\r
6         for <notmuch@notmuchmail.org>; Sat, 12 Mar 2011 15:44:19 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id EHxIVUkZOGaR for <notmuch@notmuchmail.org>;\r
16         Sat, 12 Mar 2011 15:44:19 -0800 (PST)\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
18  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
19  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
20  0162C431FB5    for <notmuch@notmuchmail.org>; Sat, 12 Mar 2011 15:44:18 -0800\r
21  (PST)\r
22 Received: by wwb28 with SMTP id 28so3814426wwb.2\r
23         for <notmuch@notmuchmail.org>; Sat, 12 Mar 2011 15:44:17 -0800 (PST)\r
24 Received: by 10.227.166.15 with SMTP id k15mr618138wby.204.1299973457534;\r
25         Sat, 12 Mar 2011 15:44:17 -0800 (PST)\r
26 Received: from localhost (201.102-240-81.adsl-dyn.isp.belgacom.be\r
27         [81.240.102.201])\r
28         by mx.google.com with ESMTPS id o6sm4738083wbo.21.2011.03.12.15.44.15\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Sat, 12 Mar 2011 15:44:16 -0800 (PST)\r
31 From: Pieter Praet <pieter@praet.org>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH] test: "search-by-folder" single-word search terms should be\r
34         updated correctly when directories are renamed.\r
35 In-Reply-To: <87vd1n4rd2.fsf@SSpaeth.de>\r
36 References: <87tyh9wzs2.fsf@yoom.home.cworth.org> <878vyjya2n.fsf@SSpaeth.de>\r
37         <87vd1n4rd2.fsf@SSpaeth.de>\r
38 User-Agent: Notmuch/0.5-49-g4aeb291 (http://notmuchmail.org) Emacs/23.1.50.1\r
39         (x86_64-pc-linux-gnu)\r
40 Date: Sun, 13 Mar 2011 00:44:14 +0100\r
41 Message-ID:\r
42  <877hc3x5td.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
43 MIME-Version: 1.0\r
44 Content-Type: text/plain; charset=us-ascii\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Sat, 12 Mar 2011 23:44:19 -0000\r
58 \r
59 On Mon, 17 Jan 2011 14:00:41 +0100, Sebastian Spaeth <Sebastian@SSpaeth.de> wrote:\r
60 > However, when moving files into another folder and rerunning notmuch\r
61 > new, the folder value is never updated, it seems.\r
62 \r
63 This appears to occur only when searching with a single-word folder\r
64 path.\r
65 \r
66 ---\r
67  test/search-by-folder |    6 +++++-\r
68  1 files changed, 5 insertions(+), 1 deletions(-)\r
69 \r
70 diff --git a/test/search-by-folder b/test/search-by-folder\r
71 index 162158c..63ed57b 100755\r
72 --- a/test/search-by-folder\r
73 +++ b/test/search-by-folder\r
74 @@ -28,13 +28,17 @@ notmuch new\r
75  output=$(notmuch search folder:bad/news | notmuch_search_sanitize)\r
76  test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Bears (inbox unread)"\r
77 \r
78 -test_begin_subtest "After rename, old path returns nothing"\r
79 +test_begin_subtest "After rename, old multi-word path returns nothing"\r
80  mv "${MAIL_DIR}/duplicate/bad/news" "${MAIL_DIR}/duplicate/bad/olds"\r
81  increment_mtime "${MAIL_DIR}/duplicate/bad"\r
82  notmuch new\r
83  output=$(notmuch search folder:bad/news | notmuch_search_sanitize)\r
84  test_expect_equal "$output" ""\r
85 \r
86 +test_begin_subtest "After rename, old single-word path returns nothing"\r
87 +output=$(notmuch search folder:news | notmuch_search_sanitize)\r
88 +test_expect_equal "$output" ""\r
89 +\r
90  test_begin_subtest "After rename, new path returns result"\r
91  output=$(notmuch search folder:bad/olds | notmuch_search_sanitize)\r
92  test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Bears (inbox unread)"\r
93 ---\r