From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#66885: 29.1; gnus search with mu always returns empty Date: Mon, 06 Nov 2023 19:47:04 -0800 Message-ID: <87msvq6x8n.fsf@ericabrahamsen.net> References: <87sf5ppkx9.fsf@b3l.xyz> <877cn19t93.fsf@ericabrahamsen.net> <87jzr18e5z.fsf@b3l.xyz> <871qd89rft.fsf@ericabrahamsen.net> <878r7egb4v.fsf@uwaterloo.ca> <87il6i8lbc.fsf@ericabrahamsen.net> <87ttpymuib.fsf@b3l.xyz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6725"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66885@debbugs.gnu.org To: Britt Anderson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 07 04:47:55 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r0D4F-0001Wf-9Z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Nov 2023 04:47:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0D3n-0004bO-Tc; Mon, 06 Nov 2023 22:47:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0D3l-0004Z5-01 for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 22:47:25 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0D3k-0008RJ-Oa for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 22:47:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0D4M-0008D8-7S for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 22:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Nov 2023 03:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66885 X-GNU-PR-Package: emacs Original-Received: via spool by 66885-submit@debbugs.gnu.org id=B66885.169932887531549 (code B ref 66885); Tue, 07 Nov 2023 03:48:02 +0000 Original-Received: (at 66885) by debbugs.gnu.org; 7 Nov 2023 03:47:55 +0000 Original-Received: from localhost ([127.0.0.1]:41072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0D4E-0008Cm-HY for submit@debbugs.gnu.org; Mon, 06 Nov 2023 22:47:54 -0500 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:57010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0D4B-0008CX-Dd for 66885@debbugs.gnu.org; Mon, 06 Nov 2023 22:47:52 -0500 Original-Received: from localhost (71-212-21-65.tukw.qwest.net [71.212.21.65]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 6A19CFA0C0; Tue, 7 Nov 2023 03:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1699328826; bh=fRXzIm72+J6URcz9Jo3GN5EMOvPSUts29AsHzG1vdg8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Be6cwNxE+R+ps9jrYK3F+EkTr3oWU9hovX9hJaL3LTR1N7oBea7vInKNfDdmSl39f LI6Zu2O7KDtBHToUo97d3fdxB/rIxaCXPl/+auXBJt4GEx4Y6YA+hKtVoWOUreYM4N nNPnWxBBlTMa/rjLHQmqJTMqY+GydQ2zc143RypM= In-Reply-To: <87ttpymuib.fsf@b3l.xyz> (Britt Anderson's message of "Mon, 06 Nov 2023 16:33:11 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273910 Archived-At: Britt Anderson writes: > Eric Abrahamsen writes: > >> >> The remove-prefix should delete the file path up to the level of the >> server, meaning that the group/folder name will be read as the first >> filepath segment _after_ the removal. >> >> In theory, if you have multiple mail installations all indexed by mu, >> and those installations are represented by multiple Gnus backends, it >> could still work. If each backend was configured with a separate >> remove-prefix, then it could only extract the results that were relevant >> to that backend. I don't think that would currently work correctly, >> though. >> > > Eric, I don't if this helps, but I have kept fiddling around with this. > I decided to watch the ~gnus-search-mu-remove-prefix~ variable with this > in my .gnus.el file: > > (nnmaildir "b3l-archives" > (directory "/home/britt/.local/share/mail/b3l.xyz/britt/archives") > (gnus-search-engine gnus-search-mu > (remove-prefix "/home/britt/.local/share/mail/b3l.xyz/britt/archives"))) > > > There is a maildir "y2023" that lives in archives. Using gnus I can read > the mail in there. > > Before I start gnus none of the gnus-* variables are available from C-h > v. > > After I start gnus I can see many of them, but not the gnus-search-* > variables. > > After I go into gnus and try to perform a search on that directory then > the gnus-search variables become visible. When I do C-h v > gnus-search-mu-remove-prefix it still shows "/home/britt/Mail" even > though the remove prefix was set above. Is my syntax bad somehow? Your syntax is fine! `gnus-search-mu-remove-prefix' is used as a default value for `gnus-search-mu` engines, if they don't set their own `remove-prefix' value. Your config above sets that option, so the global variable will be ignored in this case. Sorry if that was a bit of a wild goose chase. Your configuration looks correct (your configuration also reveals an annoying redundancy in gnus-search, which is that most nnmail backends have a "directory" value that can and should be used as the value of remove-prefix). Basically, if you're seeing "a maildir "y2023" that lives in archives" as a Gnus group, then this is just a bug in gnus-search's mu handling, plain and simple. > Just hoping this may give you an idea where the trouble lies. Still > working hard to get back to gnus again. Thanks for keeping at it! Don't lose hope, and I'll try to figure out what's going on with gnus-search.