From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 21A8F1F452; Wed, 12 Apr 2023 00:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1681258014; bh=ca/ZHHeNKJS1pApgm5GqC/DWYZ90B9pW1OEVLDSOk7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YX2d01oDIghrrKkRDp8ZYjpHbnlsMIlSYK62wc2f41voYaCm8wBHxckXsHoNtWdJw 5Svu7MWyMIZXwgljgWIHW4DsTUVmZMgzjcMf4Wi5bwfNr6Juk2np1FAfg+78q/xVTT 80blhL3zTn3BPss37duE5KS1vHgrn42tb5xTCD9s= Date: Wed, 12 Apr 2023 00:06:53 +0000 From: Eric Wong To: Jacob Keller Cc: meta@public-inbox.org Subject: Re: search by whole thread? Message-ID: <20230412000654.M9394@dcvr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: Jacob Keller wrote: > Hi, > > I'm wondering if there is a way to search a list by the entire thread? Not yet... > For example, I want to find all threads which have at least one message > with dfn: and which have no messages containing the text > "Reviewed-by". > > This would for example let me search an open source archive for threads > (patch series for example) which have not received any reviewed-by reply. Yes, that's something I've wanted, too... > The current search function available through the HTML website doesn't > seem to have a "by thread" function. I also haven't been able to find > any option similar to this in the email client I typically use for > interacting with the lists (Thunderbird). I think the reason it's rare in MUAs is that it's potentially very expensive. But I think the `thread:{subquery}' feature from notmuch I discussed with Konstantin the other week[1] can do what you want it to do. Keep in mind, notmuch-search-terms(7) states: The performance of such queries can vary wildly. And that's for a private client tool for a single user. For a public-facing web UI, we'll need proper timeouts (likely via RLIMIT_CPU + SIGXCPU) in an external process and a C++ build against libxapian. AFAIK, custom query parsers aren't possible in Xapian's high-level language bindings; fortunately I can legally reuse GPL-3+ C++ code from notmuch \o/ The external process will probably be similar to `git cat-file --batch-command' though it can use SOCK_SEQPACKET for requests and pipes for large responses. > Perhaps this is something that I could implement locally from the clone > of the archive, but I am not quite sure how to go about it.. It seems > like something that should be reasonably straight forward given the way > that public inbox already tracks threads. Any suggestions on how to get > something like this would be appreciated. Are you able to confirm notmuch `thread:{subquery}' is what you're after? I plan on implementing it with proper timeouts for untrusted clients within the next few weeks/months; assuming some other stuff works out and I still have Internet + power. [1] https://public-inbox.org/meta/20230328194549.M808175@dcvr/