Flat search and threaded views
[notmuch-archives.git] / 42 / 4afb9802c111d0a2e568b2639021e6fd946f5d
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 1D102429E4E\r
6         for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 08:56:37 -0700 (PDT)\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 MrZQRwGMDCQs for <notmuch@notmuchmail.org>;\r
16         Sun, 10 Jul 2011 08:56:36 -0700 (PDT)\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
18         [74.125.82.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 1C9AE429E2E\r
21         for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 08:56:35 -0700 (PDT)\r
22 Received: by mail-wy0-f181.google.com with SMTP id 22so2426125wyh.26\r
23         for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 08:56:35 -0700 (PDT)\r
24 Received: by 10.227.201.142 with SMTP id fa14mr3526177wbb.48.1310313395781;\r
25         Sun, 10 Jul 2011 08:56:35 -0700 (PDT)\r
26 Received: from localhost ([109.131.150.231])\r
27         by mx.google.com with ESMTPS id b13sm9310898wbh.41.2011.07.10.08.56.34\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Sun, 10 Jul 2011 08:56:35 -0700 (PDT)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: Notmuch Mail <notmuch@notmuchmail.org>\r
32 Subject: [PATCH 5/6] test: emacs: `notmuch-search-operate-all' should operate\r
33         on threads, not messages\r
34 Date: Sun, 10 Jul 2011 17:55:34 +0200\r
35 Message-Id: <1310313335-4159-6-git-send-email-pieter@praet.org>\r
36 X-Mailer: git-send-email 1.7.5.4\r
37 In-Reply-To: <1310313335-4159-1-git-send-email-pieter@praet.org>\r
38 References: <1310313335-4159-1-git-send-email-pieter@praet.org>\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, 10 Jul 2011 15:56:37 -0000\r
52 \r
53 In order to be consistent with `notmuch-search-{add,remove}-tag' ("+"/"-"),\r
54 `notmuch-search-operate-all' ("*") should operate on matching threads\r
55 instead of matching messages.\r
56 \r
57 This test exposes an existing bug, so is currently failing.\r
58 It should be fixed in the next commit.\r
59 \r
60 Signed-off-by: Pieter Praet <pieter@praet.org>\r
61 ---\r
62  test/emacs-search-operate-all |    8 ++++----\r
63  1 files changed, 4 insertions(+), 4 deletions(-)\r
64 \r
65 diff --git a/test/emacs-search-operate-all b/test/emacs-search-operate-all\r
66 index 2bd50ba..48326c8 100755\r
67 --- a/test/emacs-search-operate-all\r
68 +++ b/test/emacs-search-operate-all\r
69 @@ -7,7 +7,7 @@ EXPECTED=$TEST_DIRECTORY/emacs.expected-output\r
70  \r
71  add_email_corpus\r
72  \r
73 -test_begin_subtest "Add/remove tags to/from all matching messages."\r
74 +test_begin_subtest "Add/remove tags to/from all matching threads."\r
75  test_emacs '(notmuch-search "tag:inbox AND tags")\r
76             (notmuch-test-wait)\r
77             (notmuch-search-operate-all "+matching -inbox")\r
78 @@ -15,13 +15,13 @@ test_emacs '(notmuch-search "tag:inbox AND tags")\r
79             (notmuch-test-wait)\r
80             (test-output)'\r
81  cat <<EOF >EXPECTED\r
82 +  2009-11-18 [2/2]   Ingmar Vanhassel, Carl Worth  [notmuch] [PATCH] Typsos (matching unread)\r
83    2009-11-18 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (matching signed unread)\r
84 -  2009-11-18 [1/3]   Carl Worth, Israel Herraiz, Keith Packard       [notmuch] New to the list (inbox matching unread)\r
85 +  2009-11-18 [3/3]   Israel Herraiz, Keith Packard, Carl Worth   [notmuch] New to the list (matching unread)\r
86    2009-11-18 [2/2]   Keith Packard, Carl Worth    [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (matching unread)\r
87 -  2009-11-18 [1/2]   Keith Packard, Alexander Botero-Lowry    [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox matching unread)\r
88 +  2009-11-18 [2/2]   Keith Packard, Alexander Botero-Lowry    [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (matching unread)\r
89    2009-11-18 [1/1]   Jan Janak            [notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (matching unread)\r
90    2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (matching unread)\r
91 -  2009-11-17 [1/2]   Ingmar Vanhassel, Carl Worth  [notmuch] [PATCH] Typsos (inbox matching unread)\r
92  End of search results.\r
93  EOF\r
94  test_expect_equal_file OUTPUT EXPECTED\r
95 -- \r
96 1.7.5.4\r
97 \r