--- /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 7D4D96DE02B1\r
+ for <notmuch@notmuchmail.org>; Tue, 23 Jun 2015 09:20:37 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.715\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.715 tagged_above=-999 required=5 tests=[AWL=0.285, \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
+ FREEMAIL_REPLY=1, 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 jDmQQ1M3Qmf9 for <notmuch@notmuchmail.org>;\r
+ Tue, 23 Jun 2015 09:20:36 -0700 (PDT)\r
+Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
+ [209.85.212.181])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id A2E176DE1B48\r
+ for <notmuch@notmuchmail.org>; Tue, 23 Jun 2015 09:19:05 -0700 (PDT)\r
+Received: by wicgi11 with SMTP id gi11so21888963wic.0\r
+ for <notmuch@notmuchmail.org>; Tue, 23 Jun 2015 09:19:03 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+ :mime-version:content-type;\r
+ bh=448VD6vbqyxFTPDeXdCDFRqBr8r+Zanagq+k8DarHUM=;\r
+ b=FK2eBoJMkrMdVZtd6iO9rModejQeooRcSkTS/9pkWZEreZ05cM4KpuN597InORrXrH\r
+ 3EJj66Z/iNpzxfOMyTv60KfIcNFKu+gOkYS5rMXWq6LQIC7e4WGAfAX2aYPkcS7sLbp/\r
+ 9NXbj+0AUXMOsPvsKC6yx+vKPfNJD8Cm5pWcyxp50MOxtAOswkRKnulnKuNb9HsIXgEj\r
+ Xmrjb4bYpczu0WgXu5hOTjHe8oyUmx+QZ3CV5Gha+LFTPwhTg4bNv4a7hidx2KrcalkU\r
+ lNRnguFyTZlIVvDBXtywd99no7hHHGs+qrMNkfAXImj9DnbgeSmXwxOwUDNY3vArOhfA\r
+ 8WGg==\r
+X-Received: by 10.194.121.163 with SMTP id ll3mr50956353wjb.142.1435076343619;\r
+ Tue, 23 Jun 2015 09:19:03 -0700 (PDT)\r
+Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
+ by mx.google.com with ESMTPSA id a6sm3412244wjy.33.2015.06.23.09.19.02\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Tue, 23 Jun 2015 09:19:02 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: David Bremner <david@tethera.net>, notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: =?utf-8?Q?=5BRa=C3=BAl?= Benencia] Bug#789693: notmuch-emacs:\r
+ notmuch-tree does not mark messages as read\r
+In-Reply-To: <87616ewk86.fsf@maritornes.cs.unb.ca>\r
+References: <87616ewk86.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Notmuch/0.18.1+86~gef5e66a (http://notmuchmail.org) Emacs/23.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Tue, 23 Jun 2015 17:19:01 +0100\r
+Message-ID: <87pp4mwg7e.fsf@qmul.ac.uk>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Tue, 23 Jun 2015 16:20:37 -0000\r
+\r
+\r
+Hi\r
+\r
+> This seems to be true for me also. Strange that I never noticed before.\r
+> Am I right in thinking that patch\r
+>\r
+> id:1433843467-32398-1-git-send-email-markwalters1009@gmail.com\r
+>\r
+> is directed to fix this?\r
+\r
+Yes that is correct. What happened is that the tree code relied on the\r
+message-pane (a show buffer) to mark the message read, but updated its\r
+own display. After the unread handling changes the show buffer only marks a\r
+message read if it is the active buffer (so its post-command hook gets\r
+called), so it no longer removes the unread tag.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+(PS this message shows the deficiencies in our emacs reply handling: it\r
+doesn't include the rfc822 part!)\r
+\r
+\r
+\r