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 23DE0431FD7
\r
6 for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 15:11:46 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 lfgbYtVeFA85 for <notmuch@notmuchmail.org>;
\r
16 Thu, 23 Feb 2012 15:11:44 -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 A7614431FC2 for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 15:11:39 -0800
\r
22 Received: by wgbdt12 with SMTP id dt12so1388960wgb.2
\r
23 for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 15:11:38 -0800 (PST)
\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates
\r
25 10.180.89.71 as permitted sender) client-ip=10.180.89.71;
\r
26 Authentication-Results: mr.google.com;
\r
27 spf=pass (google.com: domain of pieter@praet.org
\r
28 designates 10.180.89.71 as permitted sender)
\r
29 smtp.mail=pieter@praet.org
\r
30 Received: from mr.google.com ([10.180.89.71])
\r
31 by 10.180.89.71 with SMTP id bm7mr730933wib.20.1330038698339 (num_hops
\r
32 = 1); Thu, 23 Feb 2012 15:11:38 -0800 (PST)
\r
34 Received: by 10.180.89.71 with SMTP id bm7mr585606wib.20.1330038698150;
\r
35 Thu, 23 Feb 2012 15:11:38 -0800 (PST)
\r
36 Received: from localhost ([109.131.181.26])
\r
37 by mx.google.com with ESMTPS id gd8sm7406854wib.2.2012.02.23.15.11.37
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Thu, 23 Feb 2012 15:11:37 -0800 (PST)
\r
40 From: Pieter Praet <pieter@praet.org>
\r
41 To: David Bremner <david@tethera.net>,
\r
42 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
43 Subject: [PATCH 3/6] test: emacs: `notmuch-show-tag-all' sans prefix arg
\r
44 should only tag open messages
\r
45 Date: Fri, 24 Feb 2012 00:09:11 +0100
\r
46 Message-Id: <1330038554-10347-3-git-send-email-pieter@praet.org>
\r
47 X-Mailer: git-send-email 1.7.8.1
\r
48 In-Reply-To: <878vjtqhcg.fsf@praet.org>
\r
49 References: <878vjtqhcg.fsf@praet.org>
\r
51 ALoCoQnxVuDkAFYRLXroFAx/z1Fo5hYD+tMbFB4o/RTNMv0z56q9V2Tn8KfTo82i+xZwjlW0mN/g
\r
52 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
53 X-BeenThere: notmuch@notmuchmail.org
\r
54 X-Mailman-Version: 2.1.13
\r
56 List-Id: "Use and development of the notmuch mail system."
\r
57 <notmuch.notmuchmail.org>
\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
61 List-Post: <mailto:notmuch@notmuchmail.org>
\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
65 X-List-Received-Date: Thu, 23 Feb 2012 23:11:46 -0000
\r
69 - Alter subtest "notmuch-show: change tags of all messages in current buffer":
\r
70 Pass a prefix arg to `notmuch-show-tag-all' ("*").
\r
72 - New subtest "notmuch-show: change tags of open messages in current buffer":
\r
73 When called *without* a prefix arg, `notmuch-show-tag-all' ("*") should only
\r
74 change the tags of *open* messages. Currently broken, fix follows later.
\r
76 test/emacs | 18 +++++++++++++++++-
\r
77 1 files changed, 17 insertions(+), 1 deletions(-)
\r
79 diff --git a/test/emacs b/test/emacs
\r
80 index d2dbafc..644ef59 100755
\r
83 @@ -146,11 +146,27 @@ count_match=$(notmuch count -- "$query" AND "$filter") # = 2
\r
84 test_emacs "(notmuch-search \"$query AND $filter\")
\r
86 (notmuch-search-show-thread)
\r
87 - (execute-kbd-macro \"*+$add_tag -$del_tag\")"
\r
88 + (execute-kbd-macro \"
\15*+$add_tag -$del_tag\")"
\r
89 count_changed=$(notmuch count -- "$query" AND tag:"$add_tag" AND NOT tag:"$del_tag")
\r
90 notmuch tag +"$del_tag" -"$add_tag" -- "$query" # revert tag changes
\r
91 test_expect_equal "$count_changed" "$count_total" # assert that CHANGED == TOTAL
\r
93 +test_begin_subtest "notmuch-show: change tags of open messages in current buffer"
\r
94 +test_subtest_known_broken
\r
95 +query="$os_x_darwin_thread"
\r
96 +filter="from:Jiang"
\r
97 +add_tag="notmuch-show-tag-all"
\r
99 +count_total=$(notmuch count -- "$query") # = 4
\r
100 +count_match=$(notmuch count -- "$query" AND "$filter") # = 2
\r
101 +test_emacs "(notmuch-search \"$query AND $filter\")
\r
102 + (notmuch-test-wait)
\r
103 + (notmuch-search-show-thread)
\r
104 + (execute-kbd-macro \"*+$add_tag -$del_tag\")"
\r
105 +count_changed=$(notmuch count -- "$query" AND tag:"$add_tag" AND NOT tag:"$del_tag")
\r
106 +notmuch tag +"$del_tag" -"$add_tag" -- "$query" # revert tag changes
\r
107 +test_expect_equal "$count_changed" "$count_match" # assert that CHANGED == MATCHING
\r
109 test_begin_subtest "Message with .. in Message-Id:"
\r
110 add_message [id]=123..456@example '[subject]="Message with .. in Message-Id"'
\r
111 test_emacs '(notmuch-search "id:\"123..456@example\"")
\r