Re: [PATCH] test: canonicalize content-type in "Sending a message via (fake) SMTP"
[notmuch-archives.git] / ad / fff842ad37e59544cb1dc50d2094f0b0c33265
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 A7BA3409F04\r
6         for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 14:33:31 -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 miTAkaRFzJ5W for <notmuch@notmuchmail.org>;\r
16         Fri, 24 Feb 2012 14:33:30 -0800 (PST)\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
18         [209.85.212.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 140D6415E50\r
21         for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 14:33:28 -0800 (PST)\r
22 Received: by mail-wi0-f181.google.com with SMTP id hi8so2008573wib.26\r
23         for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 14:33:28 -0800 (PST)\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates\r
25         10.180.92.71 as permitted sender) client-ip=10.180.92.71; \r
26 Authentication-Results: mr.google.com;\r
27         spf=pass (google.com: domain of pieter@praet.org\r
28         designates 10.180.92.71 as permitted sender)\r
29         smtp.mail=pieter@praet.org\r
30 Received: from mr.google.com ([10.180.92.71])\r
31         by 10.180.92.71 with SMTP id ck7mr10958312wib.3.1330122808808 (num_hops\r
32         = 1); Fri, 24 Feb 2012 14:33:28 -0800 (PST)\r
33 MIME-Version: 1.0\r
34 Received: by 10.180.92.71 with SMTP id ck7mr8861235wib.3.1330122807602;\r
35         Fri, 24 Feb 2012 14:33:27 -0800 (PST)\r
36 Received: from localhost ([109.131.181.26])\r
37         by mx.google.com with ESMTPS id by4sm399414wib.3.2012.02.24.14.33.26\r
38         (version=TLSv1/SSLv3 cipher=OTHER);\r
39         Fri, 24 Feb 2012 14:33:27 -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 v2 3/6] test: emacs: `notmuch-show-tag-all' with prefix arg\r
44         should only tag open messages\r
45 Date: Fri, 24 Feb 2012 23:30:37 +0100\r
46 Message-Id: <1330122640-18895-4-git-send-email-pieter@praet.org>\r
47 X-Mailer: git-send-email 1.7.8.1\r
48 In-Reply-To: <1330122640-18895-1-git-send-email-pieter@praet.org>\r
49 References: <87wr7xqpuf.fsf@rocinante.cs.unb.ca>\r
50         <1330122640-18895-1-git-send-email-pieter@praet.org>\r
51 X-Gm-Message-State:\r
52  ALoCoQmq/sCumg/zM3Fp2o1tjEj8bn5lS6M+qmfohU9cq0UsWcyOOcU+HfQaqsejcTVlNbXz+l3l\r
53 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Fri, 24 Feb 2012 22:33:32 -0000\r
67 \r
68 * test/emacs:\r
69 \r
70   - New subtest "notmuch-show: change tags of open messages in current buffer":\r
71     When called with a prefix arg, `notmuch-show-tag-all' ("*") should only\r
72     change the tags of *open* messages.  Currently broken, fix follows later.\r
73 ---\r
74  test/emacs |   16 ++++++++++++++++\r
75  1 files changed, 16 insertions(+), 0 deletions(-)\r
76 \r
77 diff --git a/test/emacs b/test/emacs\r
78 index d2dbafc..9088ced 100755\r
79 --- a/test/emacs\r
80 +++ b/test/emacs\r
81 @@ -151,6 +151,22 @@ count_changed=$(notmuch count -- "$query" AND tag:"$add_tag" AND NOT tag:"$del_t\r
82  notmuch tag +"$del_tag" -"$add_tag" -- "$query" # revert tag changes\r
83  test_expect_equal "$count_changed" "$count_total" # assert that CHANGED == TOTAL\r
84  \r
85 +test_begin_subtest "notmuch-show: change tags of open messages in current buffer"\r
86 +test_subtest_known_broken\r
87 +query="$os_x_darwin_thread"\r
88 +filter="from:Jiang"\r
89 +add_tag="notmuch-show-tag-all"\r
90 +del_tag="inbox"\r
91 +count_total=$(notmuch count -- "$query")               # = 4\r
92 +count_match=$(notmuch count -- "$query" AND "$filter") # = 2\r
93 +test_emacs "(notmuch-search \"$query AND $filter\")\r
94 +        (notmuch-test-wait)\r
95 +        (notmuch-search-show-thread)\r
96 +        (execute-kbd-macro \"\15*+$add_tag -$del_tag\")"\r
97 +count_changed=$(notmuch count -- "$query" AND tag:"$add_tag" AND NOT tag:"$del_tag")\r
98 +notmuch tag +"$del_tag" -"$add_tag" -- "$query" # revert tag changes\r
99 +test_expect_equal "$count_changed" "$count_match" # assert that CHANGED == MATCHING\r
100 +\r
101  test_begin_subtest "Message with .. in Message-Id:"\r
102  add_message [id]=123..456@example '[subject]="Message with .. in Message-Id"'\r
103  test_emacs '(notmuch-search "id:\"123..456@example\"")\r
104 -- \r
105 1.7.8.1\r
106 \r