Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 1d / 8a96b3045b0c978fb449e44b0ea2fbc9b71588
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 23307431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:55:35 -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 S7w55-RCjwpO for <notmuch@notmuchmail.org>;\r
16         Wed, 22 Feb 2012 10:55:34 -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  689C6431FAE    for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:55:34 -0800\r
21  (PST)\r
22 Received: by wgbdt12 with SMTP id dt12so318948wgb.2\r
23         for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:55:33 -0800 (PST)\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates\r
25         10.180.87.8 as permitted sender) client-ip=10.180.87.8; \r
26 Authentication-Results: mr.google.com;\r
27         spf=pass (google.com: domain of pieter@praet.org\r
28         designates 10.180.87.8 as permitted sender)\r
29         smtp.mail=pieter@praet.org\r
30 Received: from mr.google.com ([10.180.87.8])\r
31         by 10.180.87.8 with SMTP id t8mr39272699wiz.15.1329936933295 (num_hops\r
32         = 1); Wed, 22 Feb 2012 10:55:33 -0800 (PST)\r
33 Received: by 10.180.87.8 with SMTP id t8mr32595739wiz.15.1329936933127;\r
34         Wed, 22 Feb 2012 10:55:33 -0800 (PST)\r
35 Received: from localhost ([109.131.181.26])\r
36         by mx.google.com with ESMTPS id fl2sm74969282wib.4.2012.02.22.10.55.32\r
37         (version=TLSv1/SSLv3 cipher=OTHER);\r
38         Wed, 22 Feb 2012 10:55:32 -0800 (PST)\r
39 From: Pieter Praet <pieter@praet.org>\r
40 To: Tomi Ollila <tomi.ollila@iki.fi>, Notmuch Mail <notmuch@notmuchmail.org>\r
41 Subject: Re: [PATCH v2 4/4] test: emacs: new test "notmuch-search: change tags\r
42         of all matching messages"\r
43 In-Reply-To: <m2zkcev8dt.fsf@guru.guru-group.fi>\r
44 References: <1310313335-4159-1-git-send-email-pieter@praet.org>\r
45         <1329683908-5435-1-git-send-email-pieter@praet.org>\r
46         <1329683908-5435-5-git-send-email-pieter@praet.org>\r
47         <m2zkcev8dt.fsf@guru.guru-group.fi>\r
48 User-Agent: Notmuch/0.11.1+210~g6afc43e (http://notmuchmail.org) Emacs/23.3.1\r
49         (x86_64-unknown-linux-gnu)\r
50 Date: Wed, 22 Feb 2012 19:53:20 +0100\r
51 Message-ID: <87ehtm8ztr.fsf@praet.org>\r
52 MIME-Version: 1.0\r
53 Content-Type: text/plain; charset=us-ascii\r
54 X-Gm-Message-State:\r
55  ALoCoQmgrNyZPWaew6l6ia9kRZybHLIz2f2MFpD8lR7wPbQD2maESNp8Fl9r0OlQHc+rHINZA7fi\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Wed, 22 Feb 2012 18:55:35 -0000\r
69 \r
70 On Sun, 19 Feb 2012 23:08:30 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
71 > On Sun, 19 Feb 2012 21:38:28 +0100, Pieter Praet <pieter@praet.org> wrote:\r
72 > > `notmuch-search-tag-all' (bound to "*") adds and removes tags\r
73 > > to/from all messages which match the query used to populate the\r
74 > > current search buffer.\r
75 > > ---\r
76 > >  test/emacs |   32 ++++++++++++++++++++++++++++++++\r
77 > >  1 files changed, 32 insertions(+), 0 deletions(-)\r
78 > > \r
79\r
80 > [ ... ]\r
81\r
82 > > +old_tag_count_1=$(notmuch count tag:"${old_tag}" "${filter}")\r
83 > > +new_tag_count_1=$(notmuch count tag:"${new_tag}" "${filter}")\r
84 > > +test "${old_tag_count_1}" == "0" && old_tag_count_1="Need 1+ matches!"\r
85 > > +test "${new_tag_count_1}" == "0" || new_tag_count_1="Need 0 matches!"\r
86 > > +# Change tags of all matching messages and get tag counts\r
87 > > +test_emacs "(notmuch-search \"tag:${old_tag} ${filter}\")\r
88\r
89 > Small nit: string equality comparison operator is '='. \r
90 > Use  grep '==' test/*  to confirm (or man test).\r
91 >\r
92 \r
93 Argh...  Nice catch!\r
94 \r
95 \r
96 > [ ... ]\r
97\r
98 > Tomi\r
99 \r
100 \r
101 Peace\r
102 \r
103 -- \r
104 Pieter\r