--- /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 arlo.cworth.org (Postfix) with ESMTP id 5F6816DE021E\r
+ for <notmuch@notmuchmail.org>; Sat, 15 Aug 2015 00:08:26 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.570,\r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id B4kHz8yqdo_M for <notmuch@notmuchmail.org>;\r
+ Sat, 15 Aug 2015 00:08:24 -0700 (PDT)\r
+Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com\r
+ [209.85.212.175])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 4D23D6DE1003\r
+ for <notmuch@notmuchmail.org>; Sat, 15 Aug 2015 00:08:24 -0700 (PDT)\r
+Received: by wicja10 with SMTP id ja10so34510868wic.1\r
+ for <notmuch@notmuchmail.org>; Sat, 15 Aug 2015 00:08:22 -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
+ bh=KtoNQF59UZsQqKbZrYUO7kQLBR9pQPRZmh++KYevpLU=;\r
+ b=sH+BKVSJ6WyKfOpNN3RO8lQd/SObgAc7YwVkat0cn2bAWxwRn9fp2dbBfTmAdgjCHd\r
+ kab4V7Kb1d1A6Nj6PsPeN1DqGJJSG3E7xgK7EeSIA3M74Z8H9xJQf38pona1395UjyGj\r
+ 6dSUTt3dV4/jWebNUwv350mimupCUFaCaQX17ra+JIDlDAAGN9hpLzBHL6yYoVWI3hPK\r
+ NCk4AIqm8BDVaU6cYUXoE34pXhWqbwtR9cc6JISeJ1hb2yIDEm/4XRkbgf+TVzNmiFIv\r
+ lf14EaVO35cfo04EXvwZBYQGF8qMB9QYo/2gKPp3z23OZ3EGRLNJceeMC093vAR2HUSf\r
+ 6vrA==\r
+X-Received: by 10.181.13.230 with SMTP id fb6mr13768632wid.47.1439622502584;\r
+ Sat, 15 Aug 2015 00:08:22 -0700 (PDT)\r
+Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
+ by smtp.gmail.com with ESMTPSA id mc18sm6482531wic.23.2015.08.15.00.08.21\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 15 Aug 2015 00:08:21 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: tree bugfix\r
+Date: Sat, 15 Aug 2015 08:08:13 +0100\r
+Message-Id: <1439622493-18191-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 2.1.4\r
+In-Reply-To: <87d1ys7n1s.fsf@maritornes.cs.unb.ca>\r
+References: <87d1ys7n1s.fsf@maritornes.cs.unb.ca>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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: Sat, 15 Aug 2015 07:08:26 -0000\r
+\r
+Formerly replying to an encrypted message in tree-view did not\r
+work. This is a first attempt to make it work.\r
+---\r
+\r
+notmuch-mua-reply decides whether to process crypto based on the\r
+buffer-local variable notmuch-show-process-crypto. This sets to its\r
+default value (which is notmuch-crypto-process-mime) in tree-mode\r
+buffers.\r
+\r
+As I do not have any crypto setup please can someone test? You will\r
+need to set notmuch-crypto-process-mime to t first: I have no idea if\r
+that is a bad thing to do! Any comments on whether it is a bad thing\r
+would be very useful as (assuming this bascically fixes the problem)\r
+the easy actual fix is to do this and let the user toggle\r
+process-crypto for the whole tree buffer.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+emacs/notmuch-tree.el | 5 +++++\r
+ 1 file changed, 5 insertions(+)\r
+\r
+diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el\r
+index 182235e..5695b68 100644\r
+--- a/emacs/notmuch-tree.el\r
++++ b/emacs/notmuch-tree.el\r
+@@ -867,6 +867,11 @@ (defun notmuch-tree-worker (basic-query &optional query-context target open-targ\r
+ (setq notmuch-tree-query-context query-context)\r
+ (setq notmuch-tree-target-msg target)\r
+ (setq notmuch-tree-open-target open-target)\r
++ ;; Set the default value for `notmuch-show-process-crypto' in this\r
++ ;; buffer. Although we don't use this some of the functions we call\r
++ ;; (such as reply) do. It is a buffer local variable so setting it\r
++ ;; will not affect genuine show buffers.\r
++ (setq notmuch-show-process-crypto notmuch-crypto-process-mime)\r
+ \r
+ (erase-buffer)\r
+ (goto-char (point-min))\r
+-- \r
+2.1.4\r
+\r