From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FAKE_REPLY_C,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30411 invoked from network); 1 Feb 2022 18:47:14 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 1 Feb 2022 18:47:14 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nEyBM-006ufU-A2 for ml@inbox.vuxu.org; Tue, 01 Feb 2022 12:47:12 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nEyBL-003nAI-LI for ml@inbox.vuxu.org; Tue, 01 Feb 2022 12:47:11 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nEyBK-003nAC-Gu for ding@lists.math.uh.edu; Tue, 01 Feb 2022 12:47:10 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nEyBI-006uf7-C0 for ding@lists.math.uh.edu; Tue, 01 Feb 2022 12:47:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Cc:Content-Type:Mime-Version:Message-ID:Date:Subject:From:To: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=0rTZIqBXOKydbMLdv490o0d0AaJ8rLOmIfJKbXkbevM=; b=aa41m3mxKUfiuWpOvWADFxha/Y ZG+MYSNG/b7lmmnIlt9GFZCOO00XEbbi7aKl/t8YrkMziCwb8h3jYbNASkkn6I1oMmmc8tFf79db8 nFsehB/hrepIab45+bsrelrFycVDfvyiP2KSo8uiEwPXMC2LAxf/iqfIQSQ6fuEdwBzg=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEyBA-0002PF-JM for ding@gnus.org; Tue, 01 Feb 2022 19:47:03 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nEyB7-0007n7-0l for ding@gnus.org; Tue, 01 Feb 2022 19:46:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: search engine for virtual group? Date: Tue, 01 Feb 2022 10:46:49 -0800 Message-ID: <878ruuifvq.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Andrew Cohen Cancel-Lock: sha1:bdw82gTjmfmSKfJ3fRn9HMCnRvQ= List-ID: Precedence: bulk Eric S Fraga writes: > On Tuesday, 1 Feb 2022 at 09:29, Eric Abrahamsen wrote: >> (FTR that was Andy Cohen's work, not mine) > > Ah, yes, sorry Andy! > >> That does make sense, and it's something to think about and possibly >> address. So you had to M-g on the nnselect group in particular to get it >> to refresh? > > I've been re-reading the documentation and it does state you can set it > for automatic rescan. The problem now is figuring out how to create the > group I want. nnvirtual is very good for this as it's straightforward. > nnselect is somewhat opaque. > > How do I create a group that combines all those nnml groups with the > following pattern, for instance: > > nnml\\+somename:mail\\.* > > ? Right, that's what I was saying in my original message: I'm pretty sure this is possible, but I don't know the correct syntax. Once that's sorted out, then we could add a convenience function that makes "virtual" style select groups easier to create. I just fooled around with this and couldn't get it to work, so I'm cc'ing Andy to see what he thinks. Andy, do you have a recommendation for how to make an nnselect group that works just the same as an nnvirtual group: i.e. simply collects several other groups and dumps them into one big one? I tried doing it using gnus-search, like this: (nnselect-request-create-group "family" nil '((nnselect-specs (nnselect-function . gnus-search-run-query) (nnselect-args (search-query-spec (query . "*")) (search-group-spec ("nnimap:NEA" "family.Dad" "family.Mom")))))) But it gave me: nnselect-request-update-info: Wrong type argument: consp, nil Which I haven't looked into further. But maybe the right approach is a custom 'nnselect-function, where the `nnselect-args is the list of groups to combine, and then the function just... returns all the articles in those groups? Or something? Thanks for any hints! Eric