Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5C423431FC2 for ; Tue, 24 Nov 2009 20:55:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jzjf-8ZQULby for ; Tue, 24 Nov 2009 20:55:18 -0800 (PST) Received: from tau.jukie.net (tau.jukie.net [216.239.93.128]) by olra.theworths.org (Postfix) with ESMTP id 65EF7431FAE for ; Tue, 24 Nov 2009 20:55:18 -0800 (PST) Received: from localhost.localdomain (oxygen.jukie.net [10.10.10.8]) by tau.jukie.net (Postfix) with ESMTP id BEBCAC00F83 for ; Tue, 24 Nov 2009 23:55:17 -0500 (EST) From: Bart Trojanowski To: notmuch@notmuchmail.org Date: Tue, 24 Nov 2009 23:54:32 -0500 Message-Id: <1259124875-28212-1-git-send-email-bart@jukie.net> X-Mailer: git-send-email 1.6.4.4.2.gc2f148 Subject: [notmuch] notmuch show should tell us what messages matched the search expression X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2009 04:55:19 -0000 The following 3 patches implement this feature. Internally the message object learns about flags. Only a single flag is defined to denote that a message matched the search expression. That flag is then rendered on the "message{" line in the output of notmuch show like this: message{ id:... depth:4 match:0 filename:... message{ id:... depth:4 match:1 filename:... This can now be used by UI interfaces to hide or collapse less interesting messages. -Bart