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 9BE78431FCF
\r
6 for <notmuch@notmuchmail.org>; Tue, 22 Jan 2013 09:41:36 -0800 (PST)
\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
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 V50YFCTaSTjs for <notmuch@notmuchmail.org>;
\r
17 Tue, 22 Jan 2013 09:41:36 -0800 (PST)
\r
18 Received: from mail-la0-f45.google.com (mail-la0-f45.google.com
\r
19 [209.85.215.45]) (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 62197431FD8
\r
22 for <notmuch@notmuchmail.org>; Tue, 22 Jan 2013 09:41:30 -0800 (PST)
\r
23 Received: by mail-la0-f45.google.com with SMTP id er20so2258151lab.4
\r
24 for <notmuch@notmuchmail.org>; Tue, 22 Jan 2013 09:41:28 -0800 (PST)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=google.com; s=20120113;
\r
27 h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to
\r
28 :references:in-reply-to:references:x-gm-message-state;
\r
29 bh=yRmIqmbjTMQMoNEJuhx78ulUpHelAjzMoNVbdyqy4mY=;
\r
30 b=VlLEiNE+xmfOzKenIr4eGrfFjW56pB/+riTwN7MHqraJUI1DDyBfgp/NXubisOQmUP
\r
31 76voygFfEY77bzghWWgunZvDcO9sZIvr994s080l5JhgMkJZqAZfWJ27WHjlRXpGoaSj
\r
32 VPFg8ZsXk5fjZKL+wGdCPMHqYyy9xijDm319x9B+l0AgIoi47xO6YJW661tDgVr2OpWt
\r
33 6xEk4rrTI0hcBJ/VovKS1Lfn2xFO12vQxuRrfi2O/VkalVoMH3l7NbedjbDfVXPxHWnz
\r
34 mJPd8K4DiPTB6YNqtX8R5TbCWtQ3La8ukwjSn0sbZO1Pp55yIFBXX5pThGrRYtTOTX63
\r
36 X-Received: by 10.112.38.164 with SMTP id h4mr6621520lbk.123.1358876488804;
\r
37 Tue, 22 Jan 2013 09:41:28 -0800 (PST)
\r
38 Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi.
\r
40 by mx.google.com with ESMTPS id ns7sm7324220lab.5.2013.01.22.09.41.26
\r
41 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
42 Tue, 22 Jan 2013 09:41:28 -0800 (PST)
\r
43 From: Jani Nikula <jani@nikula.org>
\r
44 To: notmuch@notmuchmail.org
\r
45 Subject: [PATCH 4/4] test: notmuch tag --remove-all
\r
46 Date: Tue, 22 Jan 2013 19:41:09 +0200
\r
48 <9cc3461ea02253eea1f4afab3f5e77e8fad852a4.1358876448.git.jani@nikula.org>
\r
49 X-Mailer: git-send-email 1.7.10.4
\r
51 <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org>
\r
53 <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org>
\r
55 <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org>
\r
57 <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org>
\r
59 ALoCoQkEnaTBqnzrU3oAsJldZZ5fezsqlEzRvB1Cazo6JlJvTOsSleS/1QZ+Ee1Hf5o5mVC526YS
\r
60 X-BeenThere: notmuch@notmuchmail.org
\r
61 X-Mailman-Version: 2.1.13
\r
63 List-Id: "Use and development of the notmuch mail system."
\r
64 <notmuch.notmuchmail.org>
\r
65 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
67 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
68 List-Post: <mailto:notmuch@notmuchmail.org>
\r
69 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
70 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
71 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
72 X-List-Received-Date: Tue, 22 Jan 2013 17:41:36 -0000
\r
75 test/tagging | 16 ++++++++++++++++
\r
76 1 file changed, 16 insertions(+)
\r
78 diff --git a/test/tagging b/test/tagging
\r
79 index 1f5632c..dc118f3 100755
\r
82 @@ -30,6 +30,22 @@ test_expect_equal "$output" "\
\r
83 thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread)
\r
84 thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 unread)"
\r
86 +test_begin_subtest "Remove all"
\r
87 +notmuch tag --remove-all One
\r
88 +notmuch tag --remove-all +tag5 +tag6 +unread Two
\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 ()
\r
92 +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (tag5 tag6 unread)"
\r
94 +test_begin_subtest "Remove all with a no-op"
\r
95 +notmuch tag +inbox +tag1 +unread One
\r
96 +notmuch tag --remove-all +foo +inbox +tag1 -foo +unread Two
\r
97 +output=$(notmuch search \* | notmuch_search_sanitize)
\r
98 +test_expect_equal "$output" "\
\r
99 +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread)
\r
100 +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 unread)"
\r
102 test_begin_subtest "Special characters in tags"
\r
103 notmuch tag +':" ' \*
\r
104 notmuch tag -':" ' Two
\r