Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 5b / 57a00efe826e5b07fffc3cc16c1c85fd7f4e6d
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 19771431FD0\r
6         for <notmuch@notmuchmail.org>; Thu, 12 May 2011 06:22:34 -0700 (PDT)\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 i51A-iKaRDDg for <notmuch@notmuchmail.org>;\r
16         Thu, 12 May 2011 06:22:30 -0700 (PDT)\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
18         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 5D558431FB6\r
21         for <notmuch@notmuchmail.org>; Thu, 12 May 2011 06:22:30 -0700 (PDT)\r
22 Received: by wyi11 with SMTP id 11so1271135wyi.26\r
23         for <notmuch@notmuchmail.org>; Thu, 12 May 2011 06:22:29 -0700 (PDT)\r
24 Received: by 10.216.231.99 with SMTP id k77mr803816weq.71.1305206549064;\r
25         Thu, 12 May 2011 06:22:29 -0700 (PDT)\r
26 Received: from localhost (188.152-240-81.adsl-dyn.isp.belgacom.be\r
27         [81.240.152.188])\r
28         by mx.google.com with ESMTPS id w12sm739937wby.58.2011.05.12.06.22.27\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Thu, 12 May 2011 06:22:28 -0700 (PDT)\r
31 From: Pieter Praet <pieter@praet.org>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: Re: [PATCH] test: "search-by-folder" single-word search terms should\r
34         be updated correctly when directories are renamed.\r
35 In-Reply-To:\r
36  <877hc3x5td.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
37 References: <87tyh9wzs2.fsf@yoom.home.cworth.org> <878vyjya2n.fsf@SSpaeth.de>\r
38         <87vd1n4rd2.fsf@SSpaeth.de>\r
39         <877hc3x5td.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
40 User-Agent: Notmuch/0.5-221-ga19d81a (http://notmuchmail.org) Emacs/23.1.50.1\r
41         (x86_64-pc-linux-gnu)\r
42 Date: Thu, 12 May 2011 15:22:25 +0200\r
43 Message-ID: <8739kk9hpq.fsf@praet.org>\r
44 MIME-Version: 1.0\r
45 Content-Type: text/plain; charset=us-ascii\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Thu, 12 May 2011 13:22:34 -0000\r
59 \r
60 On Sun, 13 Mar 2011 00:44:14 +0100, Pieter Praet <pieter@praet.org> wrote:\r
61 > On Mon, 17 Jan 2011 14:00:41 +0100, Sebastian Spaeth <Sebastian@SSpaeth.de> wrote:\r
62 > > However, when moving files into another folder and rerunning notmuch\r
63 > > new, the folder value is never updated, it seems.\r
64\r
65 > This appears to occur only when searching with a single-word folder\r
66 > path.\r
67\r
68 > ---\r
69 >  test/search-by-folder |    6 +++++-\r
70 >  1 files changed, 5 insertions(+), 1 deletions(-)\r
71\r
72 > diff --git a/test/search-by-folder b/test/search-by-folder\r
73 > index 162158c..63ed57b 100755\r
74 > --- a/test/search-by-folder\r
75 > +++ b/test/search-by-folder\r
76 > @@ -28,13 +28,17 @@ notmuch new\r
77 >  output=$(notmuch search folder:bad/news | notmuch_search_sanitize)\r
78 >  test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Bears (inbox unread)"\r
79\r
80 > -test_begin_subtest "After rename, old path returns nothing"\r
81 > +test_begin_subtest "After rename, old multi-word path returns nothing"\r
82 >  mv "${MAIL_DIR}/duplicate/bad/news" "${MAIL_DIR}/duplicate/bad/olds"\r
83 >  increment_mtime "${MAIL_DIR}/duplicate/bad"\r
84 >  notmuch new\r
85 >  output=$(notmuch search folder:bad/news | notmuch_search_sanitize)\r
86 >  test_expect_equal "$output" ""\r
87\r
88 > +test_begin_subtest "After rename, old single-word path returns nothing"\r
89 > +output=$(notmuch search folder:news | notmuch_search_sanitize)\r
90 > +test_expect_equal "$output" ""\r
91 > +\r
92 >  test_begin_subtest "After rename, new path returns result"\r
93 >  output=$(notmuch search folder:bad/olds | notmuch_search_sanitize)\r
94 >  test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Bears (inbox unread)"\r
95 > ---\r
96 \r
97 I've pushed a cleaner version of this patch to my github repo, for\r
98 inclusion in release-candidate/0.6.\r
99 \r
100 \r
101 Peace\r
102 \r
103 \r
104 [0] git://github.com/praet/notmuch.git\r
105     for-review/test-folder-search\r
106     da50c58545c2fbb77fed\r
107 \r
108 \r
109 -- \r
110 Pieter\r