--- /dev/null
+Return-Path: <amdragon@mit.edu>\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 C0CC0431FAF\r
+ for <notmuch@notmuchmail.org>; Tue, 24 Apr 2012 19:55:14 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 eLZfgDsWxdOE for <notmuch@notmuchmail.org>;\r
+ Tue, 24 Apr 2012 19:55:10 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU\r
+ [18.7.68.37])\r
+ by olra.theworths.org (Postfix) with ESMTP id 84128431FAE\r
+ for <notmuch@notmuchmail.org>; Tue, 24 Apr 2012 19:55:10 -0700 (PDT)\r
+X-AuditID: 12074425-b7f4a6d0000008e0-bb-4f97678d98be\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
+ by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id C5.6C.02272.D87679F4; Tue, 24 Apr 2012 22:55:09 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+ by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q3P2t8DK008930; \r
+ Tue, 24 Apr 2012 22:55:09 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+ (authenticated bits=0)\r
+ (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q3P2t7rj000363\r
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+ Tue, 24 Apr 2012 22:55:07 -0400 (EDT)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
+ (envelope-from <amdragon@mit.edu>)\r
+ id 1SMsNn-0007wX-0J; Tue, 24 Apr 2012 22:55:07 -0400\r
+Date: Tue, 24 Apr 2012 22:55:06 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Mark Walters <markwalters1009@gmail.com>\r
+Subject: Re: [PATCH] emacs: add a filter option to show\r
+Message-ID: <20120425025506.GM17810@mit.edu>\r
+References: <1335309421-18893-1-git-send-email-markwalters1009@gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <1335309421-18893-1-git-send-email-markwalters1009@gmail.com>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42IR4hRV1u1Nn+5vsGQ7r8XquTwW12/OZHZg\r
+ 8tg56y67x7NVt5gDmKK4bFJSczLLUov07RK4Mr4838dSsEOsYk2HQwPjXKEuRk4OCQETie6v\r
+ bWwQtpjEhXvrgWwuDiGBfYwSp1f/Y4RwNjBK9C9YxAThnGSS+DG/nxnCWcIoMW/uFSaQfhYB\r
+ VYnt75rAZrEJaEhs27+cEcQWEdCRuH1oATuIzSwgLfHtdzNYvbCAucSF6X1g9bxANZ/WXAer\r
+ ERLwlLi+ZQcLRFxQ4uTMJywQvVoSN/69BOrlAJuz/B8HiMkp4CUxaYImSIWogIrElJPb2CYw\r
+ Cs1C0jwLSfMshOYFjMyrGGVTcqt0cxMzc4pTk3WLkxPz8lKLdC30cjNL9FJTSjcxgkKa3UV1\r
+ B+OEQ0qHGAU4GJV4eGfvneYvxJpYVlyZe4hRkoNJSZT3ZOp0fyG+pPyUyozE4oz4otKc1OJD\r
+ jBIczEoivEK3gMp5UxIrq1KL8mFS0hwsSuK8mlrv/IQE0hNLUrNTUwtSi2CyMhwcShK8v9KA\r
+ hgoWpaanVqRl5pQgpJk4OEGG8wAN1wWmACHe4oLE3OLMdIj8KUZdjmtfjl5hFGLJy89LlRLn\r
+ ZQUpEgApyijNg5sDS0WvGMWB3hLm/QSyjgeYxuAmvQJawgS05FsQyAfFJYkIKakGRsnXn7aW\r
+ LrqvfXbilvmT+7fY6Lcv4Vp2QnJaS8ymtQcik5VEZstu7P130sIzmjNikneaJfNZTQ1NBj3p\r
+ BYp18+v/xhtc5s7xniby9mf8qyWLH/l1Lj0dk3Xi3Vel16UqM1mP35nc8+6bJecDYTnPFqMn\r
+ 8nrHJctve62/e2DH/c+yp09vTEjcWq3EUpyRaKjFXFScCACD061ZIAMAAA==\r
+Cc: notmuch@notmuchmail.org\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: Wed, 25 Apr 2012 02:55:14 -0000\r
+\r
+LGTM. I've been wanting this functionality for a while, but have been\r
+too lazy to implement it myself.\r
+\r
+I do have one request, though. Could we bind this to 'l' for "limit"?\r
+Generally we've been quite good at making the shift key a modifier to\r
+the functionality of the lower-case binding, which argues against 'F'.\r
+It would also make sense to switch away from 'f' for filtering\r
+(limiting) in search-view; 'f' is one of the few bindings that's used\r
+in both search and show mode with completely different meanings and\r
+'l' would be a good candidate for the related functionality in both\r
+views.\r
+\r
+Quoth Mark Walters on Apr 25 at 12:17 am:\r
+> Show the current thread with a different filter (i.e., open messages\r
+> in the thread matching the new query).\r
+> \r
+> Currently bound to 'F'.\r
+> \r
+> Note that it is not the same as filter in search as it replaces the\r
+> existing query rather than ANDing with it (but it does keep the\r
+> threadid part of the query).\r
+> ---\r
+> \r
+> I think filtering (i.e. refining current query) is not ideal as one\r
+> might want to remove some aspects of the query. Hence this patch\r
+> replaces the query-context. \r
+> \r
+> Note does not fully work with excludes pending\r
+> id:"1331836090-30560-1-git-send-email-markwalters1009@gmail.com"\r
+> \r
+> Best wishes\r
+> \r
+> Mark\r
+> \r
+> emacs/notmuch-show.el | 8 ++++++++\r
+> 1 files changed, 8 insertions(+), 0 deletions(-)\r
+> \r
+> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+> index 30b26d1..4a5b8b1 100644\r
+> --- a/emacs/notmuch-show.el\r
+> +++ b/emacs/notmuch-show.el\r
+> @@ -42,6 +42,7 @@\r
+> (declare-function notmuch-search-next-thread "notmuch" nil)\r
+> (declare-function notmuch-search-show-thread "notmuch" nil)\r
+> (declare-function notmuch-update-tags "notmuch" (current-tags tag-changes))\r
+> +(declare-function notmuch-read-query "notmuch" (prompt))\r
+> \r
+> (defcustom notmuch-message-headers '("Subject" "To" "Cc" "Date")\r
+> "Headers that should be shown in a message, in this order.\r
+> @@ -1157,6 +1158,7 @@ reset based on the original query."\r
+> (define-key map "s" 'notmuch-search)\r
+> (define-key map "m" 'notmuch-mua-new-mail)\r
+> (define-key map "f" 'notmuch-show-forward-message)\r
+> + (define-key map "F" 'notmuch-show-filter-thread)\r
+> (define-key map "r" 'notmuch-show-reply-sender)\r
+> (define-key map "R" 'notmuch-show-reply)\r
+> (define-key map "|" 'notmuch-show-pipe-message)\r
+> @@ -1399,6 +1401,12 @@ current thread."\r
+> "Mark the current message as read."\r
+> (notmuch-show-tag-message "-unread"))\r
+> \r
+> +(defun notmuch-show-filter-thread ()\r
+> + "Show the current thread with a different filter"\r
+> + (interactive)\r
+> + (setq notmuch-show-query-context (notmuch-read-query "Filter thread: "))\r
+> + (notmuch-show-refresh-view t))\r
+> +\r
+> ;; Functions for getting attributes of several messages in the current\r
+> ;; thread.\r
+> \r