From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88009 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: [Gnorb] Registry search functions Date: Thu, 03 May 2018 12:42:57 -0700 Message-ID: <87fu38ttj2.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1525376676 15521 195.159.176.226 (3 May 2018 19:44:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 May 2018 19:44:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m36223@lists.math.uh.edu Thu May 03 21:44:32 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048035.atla03.us.yomura.com ([107.189.48.35]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fEK9X-0003v1-8t for ding-account@gmane.org; Thu, 03 May 2018 21:44:31 +0200 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048035.atla03.us.yomura.com (Halon) with ESMTPS id b26bbd0c-4f0a-11e8-90af-b499baabecb2; Thu, 03 May 2018 19:46:40 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.90_1) (envelope-from ) id 1fEKAr-0000ji-2t; Thu, 03 May 2018 14:45:53 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fEKAn-0000j1-8V for ding@lists.math.uh.edu; Thu, 03 May 2018 14:45:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.90_1) (envelope-from ) id 1fEKAm-0006Ad-9D for ding@lists.math.uh.edu; Thu, 03 May 2018 14:45:49 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1fEKAk-0006Ev-Tw for ding@gnus.org; Thu, 03 May 2018 21:45:46 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fEK8c-0002rM-FJ for ding@gnus.org; Thu, 03 May 2018 21:43:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:KiIdmwPlelxp70vG0q2g1xw5v9M= X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin (3.4.1 2015-04-28) analysis follows Bayesian score: 0.1931 Ham tokens: 0.000-20--734h-0s--0d--H*M:fsf, 0.000-20--728h-0s--0d--H*MI:fsf, 0.000-16--572h-0s--0d--H*UA:Emacs, 0.000-15--567h-0s--0d--H*u:Emacs, 0.000-12--451h-0s--0d--H*UA:Gnus Spam tokens: 0.997-30972--566h-24988s--0d--H*r:quimby.gnus.org, 0.997-18971--367h-15322s--0d--Hx-spam-relays-internal:sk:junkmas, 0.997-18971--367h-15322s--0d--H*RT:sk:junkmas, 0.997-18971--367h-15322s--0d--HX-Envelope-From:sk:junkmas, 0.995-31940--964h-26071s--0d--HTo:D*gnus.org Autolearn status: no autolearn_force=no 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 BAYES_20 BODY: Bayes spam probability is 5 to 20% [score: 0.1931] 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88009 Archived-At: For gnorb users: For ages I've wanted functions for using the registry as a search index: it stores sender/recipient/subject information, which is perfectly sufficient for three quarters of my searches, which are typically of the format "where's that email so-and-so sent me last week about the thingy?" Plus it's fast, and you don't have to mark groups in advance. I've added a `gnorb-gnus-search-registry' function to gnorb 1.5, as well as a helm version for helm users: `gnorb-helm-search-registry', which I find particularly useful, in combination with candidate marking and "M-a" to mark all candidates. These are gnorb-specific only because nnir needs a server to be specified in order to hang search groups on it (if this is not the case I would love to know about it). When Andy's nnselect branch lands, this requirement will go away, and I'll move the functions into Gnus itself. Enjoy! Eric