1 Return-Path: <m.walters@qmul.ac.uk>
\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 21CE4431FC0
\r
6 for <notmuch@notmuchmail.org>; Tue, 20 Mar 2012 18:06:26 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5
\r
12 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,
\r
13 NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id ZQv6Wr+CF5dZ for <notmuch@notmuchmail.org>;
\r
17 Tue, 20 Mar 2012 18:06:25 -0700 (PDT)
\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])
\r
19 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 6437B431FAF
\r
22 for <notmuch@notmuchmail.org>; Tue, 20 Mar 2012 18:06:25 -0700 (PDT)
\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])
\r
24 by mail2.qmul.ac.uk with esmtp (Exim 4.71)
\r
25 (envelope-from <m.walters@qmul.ac.uk>)
\r
26 id 1SAA0K-0001X9-CK; Wed, 21 Mar 2012 01:06:20 +0000
\r
27 Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]
\r
29 by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)
\r
30 (envelope-from <m.walters@qmul.ac.uk>)
\r
31 id 1SAA0K-0001NZ-0c; Wed, 21 Mar 2012 01:06:20 +0000
\r
32 From: Mark Walters <markwalters1009@gmail.com>
\r
33 To: Pieter Praet <pieter@praet.org>, David Bremner <david@tethera.net>,
\r
34 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
35 Subject: Re: [PATCH v2 1/6] test: emacs: new tests "notmuch-show: {add,
\r
36 remove} multiple tags {to, from} single message"
\r
37 In-Reply-To: <1330122640-18895-2-git-send-email-pieter@praet.org>
\r
38 References: <87wr7xqpuf.fsf@rocinante.cs.unb.ca>
\r
39 <1330122640-18895-1-git-send-email-pieter@praet.org>
\r
40 <1330122640-18895-2-git-send-email-pieter@praet.org>
\r
41 User-Agent: Notmuch/0.12+67~g3bd579a (http://notmuchmail.org) Emacs/23.3.1
\r
42 (x86_64-pc-linux-gnu)
\r
43 Date: Wed, 21 Mar 2012 01:06:32 +0000
\r
44 Message-ID: <874ntiyd7r.fsf@qmul.ac.uk>
\r
46 Content-Type: text/plain; charset=us-ascii
\r
47 X-Sender-Host-Address: 94.192.233.223
\r
48 X-QM-SPAM-Info: Sender has good ham record. :)
\r
49 X-QM-Body-MD5: 2c8534889bcd95136a5f16bee42a9dad (of first 20000 bytes)
\r
50 X-SpamAssassin-Score: -1.8
\r
51 X-SpamAssassin-SpamBar: -
\r
52 X-SpamAssassin-Report: The QM spam filters have analysed this message to
\r
54 spam. We require at least 5.0 points to mark a message as spam.
\r
55 This message scored -1.8 points.
\r
56 Summary of the scoring:
\r
57 * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,
\r
59 * [138.37.6.40 listed in list.dnswl.org]
\r
60 * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
\r
61 provider * (markwalters1009[at]gmail.com)
\r
62 * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay
\r
64 * 0.5 AWL AWL: From: address is in the auto white-list
\r
65 X-QM-Scan-Virus: ClamAV says the message is clean
\r
66 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
67 X-BeenThere: notmuch@notmuchmail.org
\r
68 X-Mailman-Version: 2.1.13
\r
70 List-Id: "Use and development of the notmuch mail system."
\r
71 <notmuch.notmuchmail.org>
\r
72 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
73 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
74 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
75 List-Post: <mailto:notmuch@notmuchmail.org>
\r
76 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
77 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
78 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
79 X-List-Received-Date: Wed, 21 Mar 2012 01:06:26 -0000
\r
86 > - Rename subtests "{Add,Remove} tag from notmuch-show view" to
\r
87 > "notmuch-show: {add,remove} single tag {to,from} single message"
\r
88 > to be consistent with the following tests.
\r
90 > - New subtest "notmuch-show: add multiple tags to single message":
\r
91 > `notmuch-show-add-tag' ("+") can add multiple tags to a message.
\r
93 > - New subtest "notmuch-show: remove multiple tags from single message":
\r
94 > `notmuch-show-remove-tag' ("-") can remove multiple tags from a message.
\r
96 > test/emacs | 16 ++++++++++++++--
\r
97 > 1 files changed, 14 insertions(+), 2 deletions(-)
\r
99 > diff --git a/test/emacs b/test/emacs
\r
100 > index b74cfa9..ec1dbb0 100755
\r
103 > @@ -112,18 +112,30 @@ test_emacs "(notmuch-search \"$os_x_darwin_thread\")
\r
104 > output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
105 > test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
\r
107 > -test_begin_subtest "Add tag from notmuch-show view"
\r
108 > +test_begin_subtest "notmuch-show: add single tag to single message"
\r
109 > test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
110 > (execute-kbd-macro \"+tag-from-show-view\")"
\r
111 > output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
112 > test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag-from-show-view unread)"
\r
114 > -test_begin_subtest "Remove tag from notmuch-show view"
\r
115 > +test_begin_subtest "notmuch-show: remove single tag from single message"
\r
116 > test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
117 > (execute-kbd-macro \"-tag-from-show-view\")"
\r
118 > output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
119 > test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
\r
121 > +test_begin_subtest "notmuch-show: add multiple tags to single message"
\r
122 > +test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
123 > + (execute-kbd-macro \"+tag1-from-show-view +tag2-from-show-view\")"
\r
124 > +output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
125 > +test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag1-from-show-view tag2-from-show-view unread)"
\r
127 > +test_begin_subtest "notmuch-show: remove multiple tags from single message"
\r
128 > +test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
129 > + (execute-kbd-macro \"-tag1-from-show-view -tag2-from-show-view\")"
\r
130 > +output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
131 > +test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
\r
133 > test_begin_subtest "Message with .. in Message-Id:"
\r
134 > add_message [id]=123..456@example '[subject]="Message with .. in Message-Id"'
\r
135 > test_emacs '(notmuch-search "id:\"123..456@example\"")
\r
138 This looks good to me but I think it would be nice to have an extra test
\r
139 for adding a tag and removing a tag simultaneously.
\r