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 2452 invoked from network); 13 Aug 2021 19:38:14 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 13 Aug 2021 19:38: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 1mEd0P-00GmaH-8B for ml@inbox.vuxu.org; Fri, 13 Aug 2021 14:38:13 -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 1mEd0O-00F0Un-Pk for ml@inbox.vuxu.org; Fri, 13 Aug 2021 14:38:12 -0500 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 1mEd0N-00F0Uh-U0 for ding@lists.math.uh.edu; Fri, 13 Aug 2021 14:38:11 -0500 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 1mEd0I-006qbP-TC for ding@lists.math.uh.edu; Fri, 13 Aug 2021 14:38:11 -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: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=RA3RhPeGe1H61dBciz1V5LYwxYMzHfnwdOY7doLglVU=; b=MfJv4z9S2VdG3K0TAdFYk+EMuw 9zLRo5/a/yjLaQg6ZZhQkJzG/NUTKabDBy4kjnnMF2Mqjh+04OgjA1bb+Ttd/KiAZAbMBXRuFl7oW wMmSxQ0bcoFS6elXl1IkHvfMsd5JC7nWdv16L+0yyZpgN2326/K8ilPDxm+bGN9mkDt8=; Received: from mail.ericabrahamsen.net ([52.70.2.18]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEd06-00081t-5V for ding@gnus.org; Fri, 13 Aug 2021 21:38:01 +0200 Received: from localhost (c-71-197-184-122.hsd1.wa.comcast.net [71.197.184.122]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 820D8FA081; Fri, 13 Aug 2021 19:37:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1628883471; bh=RA3RhPeGe1H61dBciz1V5LYwxYMzHfnwdOY7doLglVU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MEcXbWBYS/Eaa3BME+ujPycR0dIn9nYYuSB6qaUh0QPMEI4V/qz4+B2+FX4riX4LV knbbhoL0UtsDbf4Ahl7C1FAo9Y7ugF8rX6nwi88VD+o/H2c4ZAaTMtgJO7HXq6LCdJ PsobdzI4fui2zJUc1kYg0Vr82oU+NMCzzKjXpuCc= From: Eric Abrahamsen To: Daniel Jensen Cc: ding@gnus.org Subject: Re: Help testing gnus-search fixups References: <87sg12uejj.fsf@ericabrahamsen.net> <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> <877dgtrbz7.fsf@bigwalter.net> <87wnop5lwz.fsf@ericabrahamsen.net> <875yw92ldr.fsf@bigwalter.net> Date: Fri, 13 Aug 2021 12:37:50 -0700 In-Reply-To: <875yw92ldr.fsf@bigwalter.net> (Daniel Jensen's message of "Fri, 13 Aug 2021 21:30:08 +0200") Message-ID: <87czqh5e5t.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 Daniel Jensen writes: > On 2021-08-13 at 09:50, Eric Abrahamsen wrote: > >> Sorry for the slow response, I was camping... > > No worries! > >> If you're only using one notmuch index, it's enough to set the global >> options like `gnus-search-notmuch-remove-prefix'. If you've got two >> nnmaildir servers each with its own notmuch index, you'll have to >> specific the different prefixes within the engine configuration: >> >> ((nnmaildir "One" >> (directory "~/Mail/one/" >> (gnus-search-engine gnus-search-notmuch >> (remove-prefix "~/Mail/one/")))) >> (nnmaildir "Two" >> (directory "~/Mail/two/" >> (gnus-search-engine gnus-search-notmuch >> (remove-prefix "~/Mail/two/"))))) >> >> Note how the sexps are nested, it's important that the engine-related >> variables go within the engine configuration sexp. > > I had tried something like this before, but could never get it right. > Actually your example above needed a small change: > > ((nnmaildir "One" > (directory "~/Mail/one/") > (gnus-search-engine gnus-search-notmuch > (remove-prefix "~/Mail/one/"))) > (nnmaildir "Two" > (directory "~/Mail/two/") > (gnus-search-engine gnus-search-notmuch > (remove-prefix "~/Mail/two/")))) > > Notice the gnus-search-engine sexps had to move up for it to work. But > now all is well. Thank you very much! "Now watch carefully as I do this incorrectly..." It really is easy to screw up! Glad everything's working now.