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 06CF8431FB6 for ; Sat, 5 Feb 2011 14:16:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled 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 3vcDt1UKzSEh for ; Sat, 5 Feb 2011 14:16:51 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 120EC431FB5 for ; Sat, 5 Feb 2011 14:16:51 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 52A5419F33B5; Sat, 5 Feb 2011 23:16:49 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id ADOZvGr2OVMr; Sat, 5 Feb 2011 23:16:48 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 1938719F33B4; Sat, 5 Feb 2011 23:16:48 +0100 (CET) Received: from wsheee.2x.cz (unknown [213.29.198.144]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 0654315C031; Sat, 5 Feb 2011 23:16:47 +0100 (CET) Received: from wsh by wsheee.2x.cz with local (Exim 4.72) (envelope-from ) id 1PlqQx-0006mX-Cq; Sat, 05 Feb 2011 23:16:47 +0100 From: Michal Sojka To: Gregor Kappler , notmuch@notmuchmail.org Subject: Re: search conditions on siblings/parent/children in thread In-Reply-To: <87zkqhdyiz.fsf@univie.ac.at> References: <87zkqhdyiz.fsf@univie.ac.at> User-Agent: Notmuch/0.5-103-g1253785 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Sat, 05 Feb 2011 23:16:47 +0100 Message-ID: <871v3mw2i8.fsf@wsheee.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Sat, 05 Feb 2011 22:16:52 -0000 On Mon, 31 Jan 2011, Gregor Kappler wrote: > I am using notmuch for my mail and also for mailing lists. For mailing > lists it would be much more convenient to have a saved search displaying > only replies to watched (say, tag:flagged) posts instead of the whole > list. Hi Gregor, AFAIK this is not possible. I customized notmuch-search-line-faces to highlight threads with flagged messages by different background color. In the search window I still see the whole list, but the interesting threads are highlighted so I can act on them differently. > I did not find any way in notmuch to specify conditions on > sibling/parent/children posts in a post's thread during search. > > Does anybody use those searches? > > Are there plans to include this feature? There were some discussions about these kinds of searches but no patches have been posted. > > Sure, this feature would be very welcomed by me! Is there demand of > other users? > > If this is currently not possible, I do not know whether it is feasable > with xapian: can xapian this kind of search and how it would perform. I think that this kind of queries could be directly performed by Xapian only if database schema is changed. However, we could probably implement them directly in notmuch at the place where the list of the threads is constructed. Custom query parser patches (sent recently by Austin Clements) could probably help in this regard. Cheers, Michal