Re: notmuch.el: controlling what does and doesn't get expanded in searches
[notmuch-archives.git] / 76 / 41dad675fde8046b8b2b1ec5ade08c57252ccc
1 Return-Path: <jani@nikula.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 7A62D431FDA\r
6         for <notmuch@notmuchmail.org>; Sat, 14 Apr 2012 05:16:04 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 yjYAsUHjjsRp for <notmuch@notmuchmail.org>;\r
17         Sat, 14 Apr 2012 05:16:03 -0700 (PDT)\r
18 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
19         [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id C7890431FD8\r
22         for <notmuch@notmuchmail.org>; Sat, 14 Apr 2012 05:15:56 -0700 (PDT)\r
23 Received: by mail-lb0-f181.google.com with SMTP id b5so40243lbd.26\r
24         for <notmuch@notmuchmail.org>; Sat, 14 Apr 2012 05:15:56 -0700 (PDT)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=google.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
28         :in-reply-to:references:x-gm-message-state;\r
29         bh=GtjyHKr/UxYHD7sZ/r+atYDXmNHNVfTyGOiKe4jX80M=;\r
30         b=G4nGjXPa+yb0hTY7/Vt4U3yl0yEsiG8+E+TgUuUtJbVt7Q/OOHsy7do8QXqe/euMx8\r
31         ncRCJ5OsP7eTXhTZI3hhq7OuajoNVtI2qLvuRI5D9r6QUM2qWLqKxaqKd1NbJYdh31DC\r
32         SfbqC2qy8/3PpIPMcN29lC9SY8KhWeX/cMGlp3WZ5QuSnt0eAgddT0r36oO5v5wTGvXV\r
33         8M/JesNdcczE1LUyjUfstbZulb03DPRztzq/NWCFFjUvrj/lgVUMy+e2VsZJHpga9+kl\r
34         Qt2EkE7V27ocSDnS27kxzoLkOAx4g/6duvgjbQCFPGbjNkJOuuXctbVsG+/zUAd0GxzI\r
35         DdaQ==\r
36 Received: by 10.112.27.233 with SMTP id w9mr573550lbg.21.1334405756435;\r
37         Sat, 14 Apr 2012 05:15:56 -0700 (PDT)\r
38 Received: from localhost (dsl-hkibrasgw4-fe50dc00-68.dhcp.inet.fi.\r
39         [80.220.80.68])\r
40         by mx.google.com with ESMTPS id f4sm1448560lbk.15.2012.04.14.05.15.54\r
41         (version=SSLv3 cipher=OTHER); Sat, 14 Apr 2012 05:15:55 -0700 (PDT)\r
42 From: Jani Nikula <jani@nikula.org>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH v2 5/6] test: add test for notmuch tag --stdin option\r
45 Date: Sat, 14 Apr 2012 15:15:30 +0300\r
46 Message-Id:\r
47  <6b9468f37983a6f5a185fadda4b2c4cbe9815aea.1334404979.git.jani@nikula.org>\r
48 X-Mailer: git-send-email 1.7.5.4\r
49 In-Reply-To: <cover.1334404979.git.jani@nikula.org>\r
50 References: <cover.1334404979.git.jani@nikula.org>\r
51 In-Reply-To: <cover.1334404979.git.jani@nikula.org>\r
52 References: <cover.1334404979.git.jani@nikula.org>\r
53 X-Gm-Message-State:\r
54  ALoCoQnGy/gdP70KhW+ut0tr7OqQkZteOYBkxpZvTj9mwbD6ESO0cxHEqzDMvLU3fKPtQPxEHj/K\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Sat, 14 Apr 2012 12:16:05 -0000\r
68 \r
69 ---\r
70  test/tagging |   13 +++++++++++++\r
71  1 files changed, 13 insertions(+), 0 deletions(-)\r
72 \r
73 diff --git a/test/tagging b/test/tagging\r
74 index e4782ed..15eb42d 100755\r
75 --- a/test/tagging\r
76 +++ b/test/tagging\r
77 @@ -46,4 +46,17 @@ test_expect_equal "$output" "\\r
78  thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; One (:\"  inbox tag1 unread)\r
79  thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag4 unread)"\r
80  \r
81 +test_begin_subtest "Batch stdin"\r
82 +notmuch tag --stdin <<EOF\r
83 +# %20 is a space in tag\r
84 +T -:"%20 -tag1 +tag5 +tag6 -- One\r
85 +T +tag1 -tag1 -tag4 +tag4 -- Two\r
86 +T -tag6 One\r
87 +T +tag5 Two\r
88 +EOF\r
89 +output=$(notmuch search \* | notmuch_search_sanitize)\r
90 +test_expect_equal "$output" "\\r
91 +thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag5 unread)\r
92 +thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag4 tag5 unread)"\r
93 +\r
94  test_done\r
95 -- \r
96 1.7.5.4\r
97 \r