--- /dev/null
+Return-Path: <markwalters1009@gmail.com>\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 03A41431E64\r
+ for <notmuch@notmuchmail.org>; Tue, 3 Sep 2013 07:05:20 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.514\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.514 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7, URI_HEX=1.313] 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 HQBJzC0GceQd for <notmuch@notmuchmail.org>;\r
+ Tue, 3 Sep 2013 07:05:14 -0700 (PDT)\r
+Received: from mail-we0-f170.google.com (mail-we0-f170.google.com\r
+ [74.125.82.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 3A43F431FD4\r
+ for <notmuch@notmuchmail.org>; Tue, 3 Sep 2013 07:05:10 -0700 (PDT)\r
+Received: by mail-we0-f170.google.com with SMTP id w60so5521017wes.29\r
+ for <notmuch@notmuchmail.org>; Tue, 03 Sep 2013 07:05:09 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id:in-reply-to:references\r
+ :mime-version:content-type:content-transfer-encoding;\r
+ bh=NLrCBNndrSwt6RO/BGwXrjG5FFG5u59CRxEc5f/nOkg=;\r
+ b=dn5gaveQ6vZPuMlj/TpFwTufQV2XzZeF9okiXCml4NwlO3MoxxgDLYeB2gOqGipMMm\r
+ YS5Adjga/xUutgjGG6jqNWIwdfbZhrPpQMGY7PDTxt8ZmDk0/OZHTKHHNZYywSfAaTL0\r
+ GyGmefnJf9aos179RN1BkIlbPn1f7f+b7LVcixzHmdK3oCCGtf38F4y/lSyOoZlPv14y\r
+ eHzmQWHJ17x5+xZ5dD8ozFmWSi8YeJtw6yuZAxvIdwUKAUjbY8KKDfHs0gEQsXXUixvW\r
+ E/2BeKgLkhFTtfUvl/97sK1aQbWghXUiHVFHMuCj7e5Ideayz2pyK5AhYbwz7RrHwEf0\r
+ 1Ycw==\r
+X-Received: by 10.180.187.41 with SMTP id fp9mr18182301wic.33.1378217109121;\r
+ Tue, 03 Sep 2013 07:05:09 -0700 (PDT)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+ by mx.google.com with ESMTPSA id q9sm5264970wib.1.1969.12.31.16.00.00\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Tue, 03 Sep 2013 07:05:08 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/4] contrib: pick: test: tag/untag whole thread\r
+Date: Tue, 3 Sep 2013 15:04:58 +0100\r
+Message-Id: <1378217100-27533-3-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1378217100-27533-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1378217100-27533-1-git-send-email-markwalters1009@gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: 8bit\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, 03 Sep 2013 14:05:20 -0000\r
+\r
+---\r
+ contrib/notmuch-pick/test/emacs-pick | 39 ++++++++++++++\r
+ .../notmuch-pick-tag-inbox-thread-tagged | 53 ++++++++++++++++++++\r
+ 2 files changed, 92 insertions(+), 0 deletions(-)\r
+ create mode 100644 contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-tag-inbox-thread-tagged\r
+\r
+diff --git a/contrib/notmuch-pick/test/emacs-pick b/contrib/notmuch-pick/test/emacs-pick\r
+index 909f76a..91edcac 100755\r
+--- a/contrib/notmuch-pick/test/emacs-pick\r
++++ b/contrib/notmuch-pick/test/emacs-pick\r
+@@ -68,6 +68,45 @@ test_begin_subtest "Untag message in notmuch pick view (database)"\r
+ output=$(notmuch search --output=messages 'tag:test_tag')\r
+ test_expect_equal "$output" ""\r
+ \r
++test_begin_subtest "Tag thread in notmuch pick view"\r
++test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
++ (require (quote notmuch-pick))\r
++ (notmuch-pick "tag:inbox")\r
++ (notmuch-test-wait)\r
++ ;; move to a sizable thread\r
++ (forward-line 26)\r
++ (notmuch-pick-tag-thread "+test_thread_tag")\r
++ (test-output)\r
++ (delete-other-windows)'\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox-thread-tagged\r
++\r
++test_begin_subtest "Tag message in notmuch pick view (database)"\r
++output=$(notmuch search --output=messages 'tag:test_thread_tag')\r
++test_expect_equal "$output" \\r
++"id:87ocn0qh6d.fsf@yoom.home.cworth.org\r
++id:20091118005040.GA25380@dottiness.seas.harvard.edu\r
++id:yunaayketfm.fsf@aiko.keithp.com\r
++id:87fx8can9z.fsf@vertex.dottedmag\r
++id:20091117203301.GV3165@dottiness.seas.harvard.edu\r
++id:87iqd9rn3l.fsf@vertex.dottedmag\r
++id:20091117190054.GU3165@dottiness.seas.harvard.edu"\r
++\r
++test_begin_subtest "Untag thread in notmuch pick view"\r
++test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
++ (require (quote notmuch-pick))\r
++ (notmuch-pick "tag:inbox")\r
++ (notmuch-test-wait)\r
++ ;; move to the same sizable thread as above\r
++ (forward-line 26)\r
++ (notmuch-pick-tag-thread "-test_thread_tag")\r
++ (test-output)\r
++ (delete-other-windows)'\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox\r
++\r
++test_begin_subtest "Untag message in notmuch pick view (database)"\r
++output=$(notmuch search --output=messages 'tag:test_thread_tag')\r
++test_expect_equal "$output" ""\r
++\r
+ test_begin_subtest "Navigation of notmuch-hello to search results"\r
+ test_emacs '(notmuch-hello)\r
+ (goto-char (point-min))\r
+diff --git a/contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-tag-inbox-thread-tagged b/contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-tag-inbox-thread-tagged\r
+new file mode 100644\r
+index 0000000..a7aba6e\r
+--- /dev/null\r
++++ b/contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-tag-inbox-thread-tagged\r
+@@ -0,0 +1,53 @@\r
++ 2010-12-29 François Boulogne ─►[aur-general] Guidelines: cp, mkdir vs install (inbox, unread)\r
++ 2010-12-16 Olivier Berger ─►Essai accentué (inbox, unread)\r
++ 2009-11-18 Chris Wilson ─►[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox, unread)\r
++ 2009-11-18 Alex Botero-Lowry ┬►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment, inbox, unread)\r
++ 2009-11-18 Carl Worth ╰─►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (inbox, unread)\r
++ 2009-11-17 Ingmar Vanhassel ┬►[notmuch] [PATCH] Typsos (inbox, unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox, unread)\r
++ 2009-11-17 Adrian Perez de Cast ┬►[notmuch] Introducing myself (inbox, signed, unread)\r
++ 2009-11-18 Keith Packard ├─► ... (inbox, unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox, unread)\r
++ 2009-11-17 Israel Herraiz ┬►[notmuch] New to the list (inbox, unread)\r
++ 2009-11-18 Keith Packard ├─► ... (inbox, unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox, unread)\r
++ 2009-11-17 Jan Janak ┬►[notmuch] What a great idea! (inbox, unread)\r
++ 2009-11-17 Jan Janak ├─► ... (inbox, unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox, unread)\r
++ 2009-11-17 Jan Janak ┬►[notmuch] [PATCH] Older versions of install do not support -C. (inbox, unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox, unread)\r
++ 2009-11-17 Aron Griffis ┬►[notmuch] archive (inbox, unread)\r
++ 2009-11-18 Keith Packard ╰┬► ... (inbox, unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox, unread)\r
++ 2009-11-17 Keith Packard ┬►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox, unread)\r
++ 2009-11-18 Carl Worth ╰─►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox, unread)\r
++ 2009-11-17 Lars Kellogg-Stedman ┬►[notmuch] Working with Maildir storage? (inbox, signed, test_thread_tag, unread)\r
++ 2009-11-17 Mikhail Gusarov ├┬► ... (inbox, signed, test_thread_tag, unread)\r
++ 2009-11-17 Lars Kellogg-Stedman │╰┬► ... (inbox, signed, test_thread_tag, unread)\r
++ 2009-11-17 Mikhail Gusarov │ ├─► ... (inbox, test_thread_tag, unread)\r
++ 2009-11-17 Keith Packard │ ╰┬► ... (inbox, test_thread_tag, unread)\r
++ 2009-11-18 Lars Kellogg-Stedman │ ╰─► ... (inbox, signed, test_thread_tag, unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox, test_thread_tag, unread)\r
++ 2009-11-17 Mikhail Gusarov ┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
++ 2009-11-17 Mikhail Gusarov ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++ file with gcc 4.4 (inbox, unread)\r
++ 2009-11-17 Carl Worth ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox, unread)\r
++ 2009-11-17 Keith Packard ╰┬► ... (inbox, unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox, unread)\r
++ 2009-11-18 Keith Packard ┬►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox, unread)\r
++ 2009-11-18 Alexander Botero-Low ╰─►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox, unread)\r
++ 2009-11-18 Alexander Botero-Low ─►[notmuch] request for pull (inbox, unread)\r
++ 2009-11-18 Jjgod Jiang ┬►[notmuch] Mac OS X/Darwin compatibility issues (inbox, unread)\r
++ 2009-11-18 Alexander Botero-Low ╰┬► ... (inbox, unread)\r
++ 2009-11-18 Jjgod Jiang ╰┬► ... (inbox, unread)\r
++ 2009-11-18 Alexander Botero-Low ╰─► ... (inbox, unread)\r
++ 2009-11-18 Rolland Santimano ─►[notmuch] Link to mailing list archives ? (inbox, unread)\r
++ 2009-11-18 Jan Janak ─►[notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (inbox, unread)\r
++ 2009-11-18 Stewart Smith ─►[notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox, unread)\r
++ 2009-11-18 Stewart Smith ─►[notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox, unread)\r
++ 2009-11-18 Stewart Smith ─►[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (inbox, unread)\r
++ 2009-11-18 Lars Kellogg-Stedman ┬►[notmuch] "notmuch help" outputs to stderr? (attachment, inbox, signed, unread)\r
++ 2009-11-18 Lars Kellogg-Stedman ╰─► ... (attachment, inbox, signed, unread)\r
++ 2009-11-17 Mikhail Gusarov ─►[notmuch] [PATCH] Handle rename of message file (inbox, unread)\r
++ 2009-11-17 Alex Botero-Lowry ┬►[notmuch] preliminary FreeBSD support (attachment, inbox, unread)\r
++ 2009-11-17 Carl Worth ╰─► ... (inbox, unread)\r
++End of search results.\r
+-- \r
+1.7.9.1\r
+\r