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: Thu, 02 Nov 2023 07:10:30 -0700 Message-ID: <871qd89rft.fsf@ericabrahamsen.net> References: <87sf5ppkx9.fsf@b3l.xyz> <877cn19t93.fsf@ericabrahamsen.net> <87jzr18e5z.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="1303"; 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 Thu Nov 02 15:12:00 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 1qyYQR-000AXI-UD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Nov 2023 15:11:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyYQ1-00005S-Ay; Thu, 02 Nov 2023 10:11:33 -0400 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 1qyYPv-0008Ox-W4 for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2023 10:11:28 -0400 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 1qyYPv-0005v4-O4 for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2023 10:11:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qyYQU-0004bP-GB for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2023 10:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Nov 2023 14:12: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.169893428417635 (code B ref 66885); Thu, 02 Nov 2023 14:12:02 +0000 Original-Received: (at 66885) by debbugs.gnu.org; 2 Nov 2023 14:11:24 +0000 Original-Received: from localhost ([127.0.0.1]:55693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qyYPo-0004aH-8e for submit@debbugs.gnu.org; Thu, 02 Nov 2023 10:11:24 -0400 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:54144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qyYPi-0004Zv-F2 for 66885@debbugs.gnu.org; Thu, 02 Nov 2023 10:11:19 -0400 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 10508FA12D; Thu, 2 Nov 2023 14:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1698934232; bh=jjwtgE5Ff/StRVDfFzehIVwfT//ztt2A6/jmQkh73fY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=U5QEuiogsCYZJm2rjhMiipd+PTOl9sWGuwbSd8jsvE1bEAx9ocpmhTntg+VlZ6K62 ieNNQTctFd2svaF8s+egvkAB1k/c2+xF3k6BmfnAQ0qPVcXN0q4ng1Ip7QaWk96O6M PJfrIqxqdt61SYViS3yH0UzwtSRKAjCWNI+40VDY= In-Reply-To: <87jzr18e5z.fsf@b3l.xyz> (Britt Anderson's message of "Wed, 01 Nov 2023 15:28:41 -0400") 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:273651 Archived-At: Britt Anderson 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.