Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / f0 / 93a54a371cc558d5ed0facd8b3d16091d4037e
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 9EA0A431E64\r
6         for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:48:00 -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 VrN1XO1aeTpg for <notmuch@notmuchmail.org>;\r
16         Sun, 29 Jan 2012 23:48:00 -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 D0B2A431FBC\r
21         for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:47:59 -0800 (PST)\r
22 Received: by wibhi8 with SMTP id hi8so3339593wib.26\r
23         for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:47:58 -0800 (PST)\r
24 Received: by 10.180.106.202 with SMTP id gw10mr33282628wib.3.1327909678683;\r
25         Sun, 29 Jan 2012 23:47:58 -0800 (PST)\r
26 Received: from localhost ([109.131.39.11])\r
27         by mx.google.com with ESMTPS id t6sm28281386wid.1.2012.01.29.23.47.57\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Sun, 29 Jan 2012 23:47:58 -0800 (PST)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
32 Subject: [PATCH v4] test: emacs: add test for `notmuch-search-operate-all'\r
33 Date: Mon, 30 Jan 2012 08:45:50 +0100\r
34 Message-Id: <1327909550-6788-1-git-send-email-pieter@praet.org>\r
35 X-Mailer: git-send-email 1.7.8.1\r
36 In-Reply-To: <1327599289-16865-1-git-send-email-dmitry.kurochkin@gmail.com>\r
37 References: <1327599289-16865-1-git-send-email-dmitry.kurochkin@gmail.com>\r
38 Cc: Notmuch Mail <notmuch@notmuchmail.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: Mon, 30 Jan 2012 07:48:00 -0000\r
52 \r
53 `notmuch-search-operate-all' (bound to "*") adds and removes tags\r
54 to/from all messages which match the query used to populate the\r
55 current search buffer.\r
56 \r
57 ---\r
58 \r
59 Rebased to current master.\r
60 \r
61 Previous versions (chronologically):\r
62 - id:"1309450108-2793-1-git-send-email-pieter@praet.org"\r
63 - id:"1309762318-4530-5-git-send-email-pieter@praet.org"\r
64 - id:"1310313335-4159-5-git-send-email-pieter@praet.org"\r
65 \r
66 \r
67  test/emacs |   19 +++++++++++++++++++\r
68  1 files changed, 19 insertions(+), 0 deletions(-)\r
69 \r
70 diff --git a/test/emacs b/test/emacs\r
71 index 8ca4c8a..e94ad94 100755\r
72 --- a/test/emacs\r
73 +++ b/test/emacs\r
74 @@ -124,6 +124,25 @@ test_emacs "(notmuch-show \"$os_x_darwin_thread\")\r
75  output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)\r
76  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
77  \r
78 +test_begin_subtest "Add/remove tags to/from all matching messages."\r
79 +test_emacs '(notmuch-search "tag:inbox AND tags")\r
80 +           (notmuch-test-wait)\r
81 +           (notmuch-search-operate-all "+matching" "-inbox")\r
82 +           (notmuch-search "tag:matching AND NOT tag:inbox")\r
83 +           (notmuch-test-wait)\r
84 +           (test-output)'\r
85 +cat <<EOF >EXPECTED\r
86 +  2009-11-18 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (matching signed unread)\r
87 +  2009-11-18 [1/3]   Carl Worth, Israel Herraiz, Keith Packard       [notmuch] New to the list (inbox matching unread)\r
88 +  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
89 +  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
90 +  2009-11-18 [1/1]   Jan Janak            [notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (matching unread)\r
91 +  2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (matching unread)\r
92 +  2009-11-17 [1/2]   Ingmar Vanhassel, Carl Worth  [notmuch] [PATCH] Typsos (inbox matching unread)\r
93 +End of search results.\r
94 +EOF\r
95 +test_expect_equal_file OUTPUT EXPECTED\r
96 +\r
97  test_begin_subtest "Message with .. in Message-Id:"\r
98  add_message [id]=123..456@example '[subject]="Message with .. in Message-Id"'\r
99  test_emacs '(notmuch-search "id:\"123..456@example\"")\r
100 -- \r
101 1.7.8.1\r
102 \r