From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72196: 30.0.60; gnus-search-indexed-search-command passes incorrect maildir argument to mu Date: Sat, 17 Aug 2024 11:18:10 +0300 Message-ID: <86mslb4l6l.fsf@gnu.org> References: <8734o5zrug.fsf@gmail.com> <86ed74u507.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38168"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eric@ericabrahamsen.net, 72196@debbugs.gnu.org, visuweshm@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 17 10:19:55 2024 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 1sfEfB-0009mg-T5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Aug 2024 10:19:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfEet-00079o-UL; Sat, 17 Aug 2024 04:19:36 -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 1sfEei-00078Q-AE for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 04:19:24 -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 1sfEei-0003Pd-13 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 04:19:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=RTwhrg25cq3e0NUARb094qiky/XICnsbz1i06+USOD8=; b=T/EWeXWa1Zzk3xWy/cRwiOeM73P06Ie/vsvsLmNHv1xKXwaaLkAEINNjta0Kj1TssHBmhSuAkPxCA0BASoFoF/Tdi9BHfthVCSWcjP1F2AXEvem/LT/n+a7aa3H8ACWwLqbfeR5XArPCBcVGR5/UOm80mP469yR+bX+HO57zFipttb4PsfuB6ky+moFMpBehj1ngwRTU8Z1mqxH0qP7Hb/OgjZEy9IEXPE+KyohaZRp4Liw+pvA8JFQOHK+WP9UxswnIxeRloFWKlq3AJ4UvHrBqvC8Au6YSZ6arj6/2a6t1DCu5YUcOVugp4SpkpPdDrQC9XAAeocYu1qzNjRScOg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfEfK-0000cL-L8 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 04:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2024 08:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72196 X-GNU-PR-Package: emacs Original-Received: via spool by 72196-submit@debbugs.gnu.org id=B72196.17238827662299 (code B ref 72196); Sat, 17 Aug 2024 08:20:02 +0000 Original-Received: (at 72196) by debbugs.gnu.org; 17 Aug 2024 08:19:26 +0000 Original-Received: from localhost ([127.0.0.1]:53401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfEej-0000b0-GJ for submit@debbugs.gnu.org; Sat, 17 Aug 2024 04:19:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfEeh-0000an-EQ for 72196@debbugs.gnu.org; Sat, 17 Aug 2024 04:19:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfEdy-0003Lo-Vn; Sat, 17 Aug 2024 04:18:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RTwhrg25cq3e0NUARb094qiky/XICnsbz1i06+USOD8=; b=le/8bPXjPQic Eysw4OV7gdF1U62qHJQgqD1B60jsWhZlZdVvViCYr7MBBs6TBAceadLcYGfDCOKvdlgzC45zL6L6V CfwKONUDsyboz5TSnKsg78C2WUzgtsIByOQBLbAkjWHveWms0GSLHAMvgtUFknSmI94/PONYxcqvw uqLwzl+FO3bcEDFbBZCs5RSVu79iH32r3PxYHlXZ2eIy6kuRf7F3kDrnT6344KaEFZvnu2AqdiHTh VBWXTYutbQ/fpkC0CErVaLW/Bk4zFOrVF0clnLJIWEsa/eIzliKUAJ4NKBgfumfjtap1yxnsX6O1/ IDmmdRTj+J65hWOtxFnn8w==; In-Reply-To: <86ed74u507.fsf@gnu.org> (message from Eli Zaretskii on Sun, 04 Aug 2024 10:22:16 +0300) 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:290228 Archived-At: Ping! Eric, can you please respond? > Cc: 72196@debbugs.gnu.org > Date: Sun, 04 Aug 2024 10:22:16 +0300 > From: Eli Zaretskii > > > From: Visuwesh > > Date: Fri, 19 Jul 2024 14:22:23 +0530 > > > > Other related bug reports may be > > > > 1. bug#6685 > > 2. https://inbox.vuxu.org/ding/87350ziqeh.fsf@alshehhi.io/ > > > > My gnus-search configuration for a nnmaildir group is: > > > > (nnmaildir "visuweshm@" > > (get-new-mail t) > > (directory ,(expand-file-name "~/mail/visuweshm@gmail.com")) > > (gnus-search-engine gnus-search-mu > > (config-directory ,(expand-file-name "~/.cache/mu/visuweshm@gmail.com/")) > > (remove-prefix ,(expand-file-name "~/mail/visuweshm@gmail.com/")))) > > > > However, I always get > > > > Group nnselect:nnselect-87ttgl238u.fsf contains no messages > > > > no matter the query. I placed a message statement in > > > > (cl-defmethod gnus-search-indexed-search-command ((engine gnus-search-mu) > > > > to print the arguments to mu, and it revealed that maildir argument > > passed to it is not correct: > > > > ("find" "--nocolor" "--muhome=/home/viz/.cache/mu/visuweshm@gmail.com/" "" "" "from:gnu.org" "and" "(" "maildir:/nnmaildir+visuweshm@:inbox" ")" "--format=plain" "--fields=l") > > > > I ran the query using G G with the point on > > > > * 0: nnmaildir+visuweshm@:inbox > > > > The maildir: query should be "maildir:inbox" instead. To fix this, I > > have > > > > (with-eval-after-load 'gnus-search > > ;; gnus-search should strip the server name part from the group > > ;; name, but it doesn't causing mu to fail. > > (cl-defmethod gnus-search-run-search :around ((engine gnus-search-indexed) > > server query groups) > > (cl-call-next-method engine server query > > (mapcar (lambda (x) > > ;; From `gnus-group-real-name'. > > (if (string-match "^[^:]+:" x) > > (substring x (match-end 0)) > > x)) > > groups)))) > > > > in my config which strips off nnmaildir+visuweshm@: bit and this got the > > mu search to work ever since I added it in ~March this year. > > Thanks. > > Eric, could you please look into this? > > > >