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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3049 invoked from network); 18 Nov 2020 20:54:23 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 18 Nov 2020 20:54:23 -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) (envelope-from ) id 1kfUSJ-007GYA-JX; Wed, 18 Nov 2020 14:53:31 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1kfUSI-00BxW2-LH; Wed, 18 Nov 2020 14:53:30 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kfUSF-00BxUM-El for ding@lists.math.uh.edu; Wed, 18 Nov 2020 14:53:27 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kfUSD-00DpKQ-OT for ding@lists.math.uh.edu; Wed, 18 Nov 2020 14:53:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HvL+yrUuNOrGlB86lC7ZhDjDb3U0uvNbzWNKq9zKVjM=; b=pRKQMLXUdipmo5VuUNB9mIF+X6 5YixnHytF5XCv5H6vdEKiBgyMLniQW61Y4w6a8ske82bLuI1DX0XCBiVqpgkkeTpbFvpcrqoUSsY6 /lN/c93BavfR3raeEzyPj7wnslTjBf4kYQ2RN4hUXXHsjlvt3iSKosluzaV4MorDbfeQ=; Received: from ericabrahamsen.net ([52.70.2.18] helo=mail.ericabrahamsen.net) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfUS4-0008CK-2V for ding@gnus.org; Wed, 18 Nov 2020 21:53:21 +0100 Received: from localhost (97-113-36-145.tukw.qwest.net [97.113.36.145]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 2D28EFA02E; Wed, 18 Nov 2020 20:53:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1605732794; bh=HvL+yrUuNOrGlB86lC7ZhDjDb3U0uvNbzWNKq9zKVjM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=d5TyCX/w+LXgDsfFfZm1YSPe1hfCknje3JBwPaJrNnj+UpCMbaS45RsTAAmppEBuj PlWmOJq4OAJVaZeQP7nYMUpommFobplpS+akhQA3Evl0+Cm+TBGz20jTR/cHSN5GPu xgM5ZXK3aVMUvpqavxlHJXxryVqtNApFvxgn8y7U= From: Eric Abrahamsen To: yoctocell Cc: ding@gnus.org Subject: Re: New "gnus-search" syntax and interface References: <87blgdavsb.fsf@ericabrahamsen.net> <86eekrrpfd.fsf@disroot.org> Date: Wed, 18 Nov 2020 12:53:12 -0800 In-Reply-To: <86eekrrpfd.fsf@disroot.org> (yoctocell's message of "Wed, 18 Nov 2020 10:21:10 +0100") Message-ID: <87wnyixu87.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk yoctocell writes: > On 4 November 2020 09:15, Eric Abrahamsen wrote: > >> [Resending via ding as the newsgroup seems to be unresponsive] >> >> Hi all, >> >> For those of you on Emacs master, I just pushed the gnus-search.el >> library, which I've been sitting on for a while. It obsoletes nnir.el >> (while borrowing some of its code), and uses nnselect to display search >> results. >> >> Under default settings, it should do nothing at all, and searches should >> behave exactly as before. The nnir.el library has been moved to >> lisp/obsolete, so code that requires it should not break, but it is no >> longer needed. >> >> If anything breaks for anyone out of the box (though it shouldn't), >> please let me know right away! > > I am new to gnus and trying to setup search with mairix and nnmaildir, I have the > following in my config > > (setq gnus-select-method '(nnnil "") > gnus-secondary-select-methods > '((nntp "news.gwene.org") > (nnmaildir "yoctocell" > (directory "~/.local/share/mail/yoctocell@disroot.org") > (gnus-search-engine gnus-search-mairix)))) > > When I press G G and enter a query, I get an error saying > > Group nnselect:nnselect-86mtzfrr62.fsf contains no messages > > Am I doing something wrong? Thanks in advance! The only other required config is the "remove-prefix" key, which tells Gnus how to strip off the leading part of the absolute filename of search results. Right now it might require an explicit absolute path, not a tilde expansion, so you'd probably need: (setq gnus-select-method '(nnnil "") gnus-secondary-select-methods '((nntp "news.gwene.org") (nnmaildir "yoctocell" (directory "~/.local/share/mail/yoctocell@disroot.org") (gnus-search-engine gnus-search-mairix (remove-prefix "///.local/share/mail/yoctocell@disroot.org"))))) That's not very reasonable, so I'll add a call to `expand-file-name' in a bit. But specifying an absolute file name doesn't hurt, either. Check first with `gnus-search-use-parsed-queries' to nil, and let me know if it still doesn't work. Eric