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=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23197 invoked from network); 29 Aug 2023 23:52:38 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 29 Aug 2023 23:52:38 -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 1qb8VQ-00DFxJ-2G for ml@inbox.vuxu.org; Tue, 29 Aug 2023 18:52:25 -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 1qb8VP-004gSu-2r for ml@inbox.vuxu.org; Tue, 29 Aug 2023 18:52:19 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1qZval-004SKS-2T for ding@lists.math.uh.edu; Sat, 26 Aug 2023 10:52:51 -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 1qZvaj-005OIU-16 for ding@lists.math.uh.edu; Sat, 26 Aug 2023 10:52:51 -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=wEsy8Dwv2n1QcxVsZI5R55/V5T0zPoLyxqDwdz1fw2s=; b=NCXEHmDgxTbggO+r/W2PLL3vTp ns5rcv/eNVmFMuhikHBwH2pdYwmXlhurw2MyR3dS/5i/q/avw6nTgfzVo4+jIF9/us4yTOp+67bUc TUQ/izckOrOXo96FbvAhQNPu/ajWLTlMv2wb9KU7kPmXa0bQvbvPU6giEgqP2ozDxoVI=; 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 1qZvaa-0003h5-Bm for ding@gnus.org; Sat, 26 Aug 2023 17:52:43 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qZvaY-00019I-CC for ding@gnus.org; Sat, 26 Aug 2023 17:52:38 +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:52:30 -0700 Message-ID: <87ledxaji9.fsf@ericabrahamsen.net> References: <87edkghpbl.fsf@alshehhi.io> <87wmy63046.fsf@ericabrahamsen.net> <87jzu5n10g.fsf@debian-BULLSEYE-live-builder-AMD64> <87sf88zpwm.fsf@free.fr> 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:Z0dPfRSbqST0TX4P+gzh/OE/JIE= List-ID: Precedence: bulk Julien Cubizolles writes: > "Loris Bennett" writes: > > >> I am also experiencing the same error. My configuration had been >> working fine for years, but after updating Debian from 11 to 12 and >> hence Emacs from 27.1 to 28.2 I now have this problem. The issue >> arises with both imap and nntp groups. >> >> This is what appears in *Messages* with gnus-verbose set to 10: >> >> Retrieving newsgroup: nnselect:nnselect-87v8dpn1ch.fsf... >> Opening server fu_exchange >> Searching nnimap+fu_exchange:HPC...done >> Group nnselect:nnselect-87v8dpn1ch.fsf contains no messages >> > 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, Hey! What would be most helpful is to see what the notmuch process returns to Emacs, so that we can see if it's a failure to parse that output or what. First of all, I've recently (just a few days ago) added a little bit of extra logging around this code. If you're using Emacs from master and have recently updated, you can set `gnus-verbose' >= 7, and it will message how many results the search engine returned, and how many results Gnus was able to extract from that. Look for strings like Search engine returned %d results. So that might at least narrow down where to look. In your case, it sounds like notmuch is returning results. Perhaps the easiest thing to do would be to run notmuch on the command line the same way that Gnus runs it. That would look like: notmuch --config= search --output files --duplicate=1 That might show you something right there. If that looks correct, maybe you could send me a sample of the results, either on- or off-list, and I can confirm that Gnus is able to parse them. gnus-search-notmuch-config-file defaults to ~/.notmuch-config, I'm actually not sure what happens if that file doesn't exist, so that's something to consider as well. Thanks, Eric