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, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1761 invoked from network); 10 Aug 2021 07:33:05 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 10 Aug 2021 07:33:05 -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 1mDMFx-00DQe3-H8 for ml@inbox.vuxu.org; Tue, 10 Aug 2021 02:33:01 -0500 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 1mDMFx-00EIVi-11 for ml@inbox.vuxu.org; Tue, 10 Aug 2021 02:33:01 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1mDMFw-00EIVd-7m for ding@lists.math.uh.edu; Tue, 10 Aug 2021 02:33:00 -0500 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 1mDMFr-00DQdm-J7 for ding@lists.math.uh.edu; Tue, 10 Aug 2021 02:32:59 -0500 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:To:From:Sender:Reply-To:Cc: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=tL3x56VN95fPMokgu8FBk1wVNb/cbWdBeJZXUynvO5I=; b=NSoDDTE2nkrML25l1+Qx84auFp 0uaGuf6hi/n/zXK2DGdLsGvQfmkuILtg01V3tIxZvMpVi167YlUsI4ewKARYNFkBUzA3xngHA2R/O Z4X+ONnG3T0tCWQBmDT2hpiwb8KlFvlFoS9ypzZk1+rxeTD3V3voAjuQ52YHRjBzWaKQ=; Received: from vsp-unauthed02.binero.net ([195.74.38.227]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDMFk-0007Wt-6x for ding@gnus.org; Tue, 10 Aug 2021 09:32:50 +0200 X-Halon-ID: 2731ffbd-f9ad-11eb-b72c-005056917a89 Authorized-sender: daniel@bigwalter.net Received: from fortis.bigwalter.net (78-69-200-135-no206.tbcn.telia.com [78.69.200.135]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPSA id 2731ffbd-f9ad-11eb-b72c-005056917a89; Tue, 10 Aug 2021 09:32:45 +0200 (CEST) From: Daniel Jensen To: Eric Abrahamsen , ding@gnus.org Subject: Re: Help testing gnus-search fixups References: <87sg12uejj.fsf@ericabrahamsen.net> <87eeclnhl5.fsf@tullinup.koldfront.dk> <87a6n9ov0e.fsf@tullinup.koldfront.dk> <87zgv97x1u.fsf@ku.dk> <87pmw4ly9a.fsf@tullinup.koldfront.dk> <87k0mclxo8.fsf@tullinup.koldfront.dk> <87zgv7thls.fsf@ericabrahamsen.net> <87bl6tuqcb.fsf@posteo.org> <87mtqd83f7.fsf@ericabrahamsen.net> <87bl6sual8.fsf@posteo.org> <87h7gj9x2w.fsf@ericabrahamsen.net> <87fsw21w3k.fsf@posteo.org> <86bl6j650f.fsf@phe.ftfl.ca> <87r1ffoatn.fsf@posteo.org> <87lf5ntupj.fsf@ericabrahamsen.net> <87pmur4xuk.fsf@ericabrahamsen.net> <87a6lvu0oo.fsf@posteo.org> <868s1fwsnk.fsf@phe.ftfl.ca> <8735rn60vv.fsf@ericabrahamsen.net> <86y29fvafr.fsf@phe.ftfl.ca> <87sfzl1bn8.fsf@ericabrahamsen.net> Date: Tue, 10 Aug 2021 09:32:44 +0200 In-Reply-To: <87sfzl1bn8.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 07 Aug 2021 09:07:39 -0700") Message-ID: <877dgtrbz7.fsf@bigwalter.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 Eric, I tried your latest gnus-search code, but it didn't work for me. I noticed that in gnus-search-indexed-parse-output the `group' variable was wrong, resulting in nnmaildir-base-name-to-article-number returning nil. This is my setup, having multiple secondary nnmaildir servers: (setq gnus-secondary-select-methods '((nnmaildir "One" (directory "~/Mail/one/")) (nnmaildir "Two" (directory "~/Mail/two/")) ...) gnus-search-default-engines '((nnmaildir . notmuch))) I found that I could make it work by giving `prefix' its value from the servers at the start of the function. Like so: (let ((prefix (or (nnmaildir--srv-dir (alist-get (string-remove-prefix "nnmaildir:" server) nnmaildir--servers nil nil #'equal)) "")) ...)) This uses the correct prefix "~/Mail/one/" and so on, not just "~/Mail/" from the engine. I have no idea what a general solution would look like. It could be my setup that is wrong, I don't know.