unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Britt Anderson <britt@b3l.xyz>
Cc: 66885@debbugs.gnu.org
Subject: bug#66885: 29.1; gnus search with mu always returns empty
Date: Mon, 06 Nov 2023 19:47:04 -0800	[thread overview]
Message-ID: <87msvq6x8n.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87ttpymuib.fsf@b3l.xyz> (Britt Anderson's message of "Mon, 06 Nov 2023 16:33:11 -0500")

Britt Anderson <britt@b3l.xyz> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> 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.





  reply	other threads:[~2023-11-07  3:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-01 15:01 bug#66885: 29.1; gnus search with mu always returns empty Britt Anderson
2023-11-01 19:19 ` Eric Abrahamsen
2023-11-01 19:28   ` Britt Anderson
2023-11-02 14:10     ` Eric Abrahamsen
2023-11-03 14:33       ` Britt Anderson
2023-11-03 23:32         ` Eric Abrahamsen
2023-11-06 21:33           ` Britt Anderson
2023-11-07  3:47             ` Eric Abrahamsen [this message]
2023-11-13 14:33               ` Britt Anderson
2023-11-19 19:46                 ` Eric Abrahamsen
2024-01-01  2:53                   ` Eric Abrahamsen
     [not found]                     ` <ZZgtJ8-cgJKEaE-D@joy>
2024-01-09 21:29                       ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87msvq6x8n.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=66885@debbugs.gnu.org \
    --cc=britt@b3l.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).