Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / b5 / e9394eeae121f4ba50aac91d4dc3e4ebe9d42f
1 Return-Path: <tomi.ollila@iki.fi>\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 ED2A0431FAF\r
6         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 13:08:29 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 3c8Fa4tC9YKW for <notmuch@notmuchmail.org>;\r
16         Sun, 19 Feb 2012 13:08:29 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
18         by olra.theworths.org (Postfix) with ESMTP id 5B1FB431FAE\r
19         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 13:08:29 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id BA89C68055; Sun, 19 Feb 2012 23:08:30 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: Pieter Praet <pieter@praet.org>, Notmuch Mail <notmuch@notmuchmail.org>\r
24 Subject: Re: [PATCH v2 4/4] test: emacs: new test "notmuch-search: change tags\r
25         of all matching messages"\r
26 In-Reply-To: <1329683908-5435-5-git-send-email-pieter@praet.org>\r
27 References: <1310313335-4159-1-git-send-email-pieter@praet.org>\r
28         <1329683908-5435-1-git-send-email-pieter@praet.org>\r
29         <1329683908-5435-5-git-send-email-pieter@praet.org>\r
30 User-Agent: Notmuch/0.11.1+198~g922c4d2 (http://notmuchmail.org) Emacs/23.3.1\r
31         (x86_64-unknown-linux-gnu)\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
33         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
34         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
35 Date: Sun, 19 Feb 2012 23:08:30 +0200\r
36 Message-ID: <m2zkcev8dt.fsf@guru.guru-group.fi>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain; charset=us-ascii\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Sun, 19 Feb 2012 21:08:30 -0000\r
52 \r
53 On Sun, 19 Feb 2012 21:38:28 +0100, Pieter Praet <pieter@praet.org> wrote:\r
54 > `notmuch-search-tag-all' (bound to "*") adds and removes tags\r
55 > to/from all messages which match the query used to populate the\r
56 > current search buffer.\r
57 > ---\r
58 >  test/emacs |   32 ++++++++++++++++++++++++++++++++\r
59 >  1 files changed, 32 insertions(+), 0 deletions(-)\r
60\r
61 \r
62 [ ... ]\r
63 \r
64 > +old_tag_count_1=$(notmuch count tag:"${old_tag}" "${filter}")\r
65 > +new_tag_count_1=$(notmuch count tag:"${new_tag}" "${filter}")\r
66 > +test "${old_tag_count_1}" == "0" && old_tag_count_1="Need 1+ matches!"\r
67 > +test "${new_tag_count_1}" == "0" || new_tag_count_1="Need 0 matches!"\r
68 > +# Change tags of all matching messages and get tag counts\r
69 > +test_emacs "(notmuch-search \"tag:${old_tag} ${filter}\")\r
70 \r
71 Small nit: string equality comparison operator is '='. \r
72 Use  grep '==' test/*  to confirm (or man test).\r
73 \r
74 [ ... ]\r
75 \r
76 Tomi\r