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, 31 Aug 2024 10:59:20 +0300 Message-ID: <86seulcecn.fsf@gnu.org> References: <8734o5zrug.fsf@gmail.com> <86ed74u507.fsf@gnu.org> <86mslb4l6l.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1021"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72196@debbugs.gnu.org, visuweshm@gmail.com To: eric@ericabrahamsen.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 31 10:00:23 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 1skJ1y-00006b-M7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Aug 2024 10:00:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skJ1j-0000qo-CV; Sat, 31 Aug 2024 04:00:07 -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 1skJ1h-0000qO-84 for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 04:00:05 -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 1skJ1g-0005SW-MF for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 04:00:04 -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=3LUN4zTsG0CwFmlVEfDNOZeBZAOQ9HGYxQJkuzAP9ls=; b=ak+pIxWxpbLmfAe9CExbqssNxDDrJjVqT0TBEwuf2S9Og6qm9PAlGTLWRebIMChodWxgfAhpcVgr+yhPbhBnFWw9Of3bywbc34ByRpyaFY1NLBfIhoCskTHDDZ2uOx08cZmmGQz7LkiwvayXHSO0uL/IbxC+K3BAbF+xqvqpEg3ce7Tpdo2HlGkAES2Zml+Ut9jq2Cg8n+MQoB45X3HxEVz153FbngfLpYoBaZpUc2EzO9NXcKbHigFFodxBailSkdbslWNyD2NhagCaG2KeRC30znXle9j5L25ab4vIkc57JOeswuH5HAh4D1BnM0CaHUXohYUscOGVkZGZXrmmHw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1skJ2c-0006Cd-Ea for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 04:01: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, 31 Aug 2024 08:01: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.172509124523799 (code B ref 72196); Sat, 31 Aug 2024 08:01:02 +0000 Original-Received: (at 72196) by debbugs.gnu.org; 31 Aug 2024 08:00:45 +0000 Original-Received: from localhost ([127.0.0.1]:53847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skJ2K-0006Bn-M4 for submit@debbugs.gnu.org; Sat, 31 Aug 2024 04:00:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skJ2I-0006BY-5A for 72196@debbugs.gnu.org; Sat, 31 Aug 2024 04:00:43 -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 1skJ1G-0005Kt-Lj; Sat, 31 Aug 2024 03:59:38 -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=3LUN4zTsG0CwFmlVEfDNOZeBZAOQ9HGYxQJkuzAP9ls=; b=Xq1K+DBhMQtR f4AokrYsbycaH5BshSyP3sLQVQi1z37Coj4Ht98+y3ZKLuD49f4eDcsqePbUQbZSgZBK2uxNihipR X3rkBXuBj6IVvhtMhHiRkk+5n4elYYoR2ZzBNYpMntNKFGMVqigibCuulQoqc/UCLrnQI1RuRJenj XjHGwsIeY86lENr1iURifbvGZzD2IdhFYrJvWdfIK5LXS6DKpvZh2wdotbhqkD8RoJi++tYlRM/aq 2WYu0BVa9izeFClkFs9lfAHRAPYD7/mzaPpPkGORB8fgyUWUReUX9cHfdeQz1JPmWKtuRYpCJ7cDO Wg91fzmwkRnKPZlTHgETVg==; In-Reply-To: <86mslb4l6l.fsf@gnu.org> (message from Eli Zaretskii on Sat, 17 Aug 2024 11:18:10 +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:290979 Archived-At: Ping! Ping! Eric, can you please respond? > Date: Sat, 17 Aug 2024 11:18:10 +0300 > From: Eli Zaretskii > Cc: visuweshm@gmail.com, eric@ericabrahamsen.net, > 72196@debbugs.gnu.org > > 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? > > > > > > > > >