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=-0.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13731 invoked from network); 26 Aug 2023 15:55:27 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 26 Aug 2023 15:55:27 -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.96) (envelope-from ) id 1qZvdB-00AoOl-0K for ml@inbox.vuxu.org; Sat, 26 Aug 2023 10:55:21 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1qZvdA-004SL5-18 for ml@inbox.vuxu.org; Sat, 26 Aug 2023 10:55:20 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1qZvd8-004SKz-34 for ding@lists.math.uh.edu; Sat, 26 Aug 2023 10:55:19 -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.96) (envelope-from ) id 1qZvd4-005OJD-2V for ding@lists.math.uh.edu; Sat, 26 Aug 2023 10:55:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=E8FRM+TZKuTqNnt1mIwOnldJlEqU2N7C2SxEYEy+t2s=; b=KMyWsYlfMoy0DCUDjwSP9usu26 A7lC1pmE4VFAOujDGqFd+rwVYL5c2SSWOPfHVN7mmw/7og0kIhW7MuJnLsJDro21KUfO09d1eCkc8 1ThNa4vWg5L8FB2MFcgv9wiG2NOvRyscKnGoIS54JhMIlz9TBkQFfJSbZQgMfq3YdcgE=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qZvcv-0003jU-3n for ding@gnus.org; Sat, 26 Aug 2023 17:55:07 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qZvct-0004Em-Eg for ding@gnus.org; Sat, 26 Aug 2023 17:55:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: Gnus search engine returns "Group nnselect:nnselect-877cqbir7v.fsf contains no messages" Date: Sat, 26 Aug 2023 08:54:28 -0700 Message-ID: <87h6olajez.fsf@ericabrahamsen.net> References: <87edkghpbl.fsf@alshehhi.io> <87wmy63046.fsf@ericabrahamsen.net> <87jzu5n10g.fsf@debian-BULLSEYE-live-builder-AMD64> <87sf88zpwm.fsf@free.fr> <875y52j5pu.fsf@gmx.net> <87ttsl52tc.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:1Ez/840QE2+T4Kj8RkBwVQ3etLE= List-ID: Precedence: bulk James Thomas writes: > James Thomas wrote: > >> Julien Cubizolles wrote: >> >>> Same problem here with Emacs 30.0.50. >>> >>> The relevant parts of my config are: >>> >>> (setq gnus-search-default-engines >>> '((nnml . gnus-search-notmuch) >>> (nntp . gnus-search-notmuch) >>> (nnimap . gnus-search-imap) >>> (nnfolder . gnus-search-notmuch) >>> (nndraft . gnus-search-notmuch) >>> (nnarchive . gnus-search-notmuch) >>> (nnselect . gnus-search-nnselect) >>> (nnmaildir . gnus-search-notmuch))) >>> >>> (setq gnus-search-use-parsed-queries t) >>> >>> (setq gnus-secondary-select-methods >>> '((nnmaildir "Academie" (directory "~/email/Maildir-mbsync/Academie") >>> (gnus-search-engine gnus-search-notmuch >>> (remove-prefix "~/email/Maildir-mbsync/Academie"))))) >>> >>> >>> On a given group from the Academie maildir, I always get the "contains >>> no messages" whatever the query. notmuch returns plenty of messages >>> whose filenames, as given by ‘notmuch-show-stash-filename’ are of the >>> form: >>> >>> Stashed: /home/wilk/email/Maildir-mbsync/Academie/General/cur/1692854503.M508606P40464Q3.sadhill,U=40:2, >> >> Try setting the 'config-file' option explicitly. A quick glance at the >> code suggests that leaving it blank is not allowed. > > No sorry, the problem could be that 'remove-prefix' needs an absolute > name (without ~). The prefix gets run through: (setq prefix (file-name-as-directory (expand-file-name "~/email/Maildir-mbsync/Academie" "/"))) so I wouldn't expect that to be the problem.