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: Thu, 02 Nov 2023 07:10:30 -0700	[thread overview]
Message-ID: <871qd89rft.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87jzr18e5z.fsf@b3l.xyz> (Britt Anderson's message of "Wed, 01 Nov 2023 15:28:41 -0400")

Britt Anderson <britt@b3l.xyz> writes:

> Copy and pasted the terminal output. mu is not expanding the 'tilde' in
> "--muhome", but if I use the full path, then I do get a list of files
> returned. However the error in the first form is not an empty search but
> a database detection error. 

That's fine, the value of config-directory is expand-file-name'd, so the
tilde doesn't make it through to mu.

Your problem is likely that your configuration doesn't include the
correct `remove-prefix', a string prefix that is removed from the
filenames returned by mu. The default is "~/Mail", which is wrong in
your case, it looks like it should be
"/home/britt/.local/share/mail/uwaterloo.ca/britt/archives".

That will have to go in your config. Note that search-engine
configuration options need to go inside the `gnus-search-engine' sexp --
your previous `config-directory' config was outside, at the `nnmaildir'
level. But that was the default value anyway, so you can leave it out.
This should be sufficient:

(setq gnus-secondary-select-methods
      '((nnmaildir "mail"
		   (directory "/home/britt/.local/share/mail")
		   (gnus-search-engine gnus-search-mu
                     (remove-prefix "/home/britt/.local/share/mail/uwaterloo.ca/britt/archives")))))

The "(gnus) Search Engines" info manual has more detail.





  reply	other threads:[~2023-11-02 14:10 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 [this message]
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
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=871qd89rft.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).