[PATCH 4/4] test: notmuch tag --remove-all
authorJani Nikula <jani@nikula.org>
Tue, 22 Jan 2013 17:41:09 +0000 (19:41 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:53:17 +0000 (09:53 -0800)
05/489d5fc60fcaad93bf0513c4f74d865387e381 [new file with mode: 0644]

diff --git a/05/489d5fc60fcaad93bf0513c4f74d865387e381 b/05/489d5fc60fcaad93bf0513c4f74d865387e381
new file mode 100644 (file)
index 0000000..28331ef
--- /dev/null
@@ -0,0 +1,107 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 9BE78431FCF\r
+       for <notmuch@notmuchmail.org>; Tue, 22 Jan 2013 09:41:36 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id V50YFCTaSTjs for <notmuch@notmuchmail.org>;\r
+       Tue, 22 Jan 2013 09:41:36 -0800 (PST)\r
+Received: from mail-la0-f45.google.com (mail-la0-f45.google.com\r
+       [209.85.215.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 62197431FD8\r
+       for <notmuch@notmuchmail.org>; Tue, 22 Jan 2013 09:41:30 -0800 (PST)\r
+Received: by mail-la0-f45.google.com with SMTP id er20so2258151lab.4\r
+       for <notmuch@notmuchmail.org>; Tue, 22 Jan 2013 09:41:28 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
+       :references:in-reply-to:references:x-gm-message-state;\r
+       bh=yRmIqmbjTMQMoNEJuhx78ulUpHelAjzMoNVbdyqy4mY=;\r
+       b=VlLEiNE+xmfOzKenIr4eGrfFjW56pB/+riTwN7MHqraJUI1DDyBfgp/NXubisOQmUP\r
+       76voygFfEY77bzghWWgunZvDcO9sZIvr994s080l5JhgMkJZqAZfWJ27WHjlRXpGoaSj\r
+       VPFg8ZsXk5fjZKL+wGdCPMHqYyy9xijDm319x9B+l0AgIoi47xO6YJW661tDgVr2OpWt\r
+       6xEk4rrTI0hcBJ/VovKS1Lfn2xFO12vQxuRrfi2O/VkalVoMH3l7NbedjbDfVXPxHWnz\r
+       mJPd8K4DiPTB6YNqtX8R5TbCWtQ3La8ukwjSn0sbZO1Pp55yIFBXX5pThGrRYtTOTX63\r
+       uVrg==\r
+X-Received: by 10.112.38.164 with SMTP id h4mr6621520lbk.123.1358876488804;\r
+       Tue, 22 Jan 2013 09:41:28 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi.\r
+       [80.223.81.27])\r
+       by mx.google.com with ESMTPS id ns7sm7324220lab.5.2013.01.22.09.41.26\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Tue, 22 Jan 2013 09:41:28 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 4/4] test: notmuch tag --remove-all\r
+Date: Tue, 22 Jan 2013 19:41:09 +0200\r
+Message-Id:\r
+ <9cc3461ea02253eea1f4afab3f5e77e8fad852a4.1358876448.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To:\r
+ <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org>\r
+References:\r
+ <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org>\r
+In-Reply-To:\r
+ <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org>\r
+References:\r
+ <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org>\r
+X-Gm-Message-State:\r
+ ALoCoQkEnaTBqnzrU3oAsJldZZ5fezsqlEzRvB1Cazo6JlJvTOsSleS/1QZ+Ee1Hf5o5mVC526YS\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 22 Jan 2013 17:41:36 -0000\r
+\r
+---\r
+ test/tagging |   16 ++++++++++++++++\r
+ 1 file changed, 16 insertions(+)\r
+\r
+diff --git a/test/tagging b/test/tagging\r
+index 1f5632c..dc118f3 100755\r
+--- a/test/tagging\r
++++ b/test/tagging\r
+@@ -30,6 +30,22 @@ test_expect_equal "$output" "\\r
+ thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread)\r
+ thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 unread)"\r
\r
++test_begin_subtest "Remove all"\r
++notmuch tag --remove-all One\r
++notmuch tag --remove-all +tag5 +tag6 +unread Two\r
++output=$(notmuch search \* | notmuch_search_sanitize)\r
++test_expect_equal "$output" "\\r
++thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; One ()\r
++thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Two (tag5 tag6 unread)"\r
++\r
++test_begin_subtest "Remove all with a no-op"\r
++notmuch tag +inbox +tag1 +unread One\r
++notmuch tag --remove-all +foo +inbox +tag1 -foo +unread Two\r
++output=$(notmuch search \* | notmuch_search_sanitize)\r
++test_expect_equal "$output" "\\r
++thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread)\r
++thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 unread)"\r
++\r
+ test_begin_subtest "Special characters in tags"\r
+ notmuch tag +':" ' \*\r
+ notmuch tag -':" ' Two\r
+-- \r
+1.7.10.4\r
+\r