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, 28 Sep 2024 11:48:28 +0300 Message-ID: <86ploo6u5f.fsf@gnu.org> References: <8734o5zrug.fsf@gmail.com> <86ed74u507.fsf@gnu.org> <86mslb4l6l.fsf@gnu.org> <86seulcecn.fsf@gnu.org> <86frq2it99.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8749"; 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 Sep 28 10:49:43 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 1suT95-00028t-7Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Sep 2024 10:49:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suT8v-0005xB-Pt; Sat, 28 Sep 2024 04:49: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 1suT8v-0005wv-0W for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 04:49:33 -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 1suT8u-0001Ao-HK for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 04:49:32 -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=IJ2k0YG81ASLouTySl8ns/bM9TpgY8eI+unJSCAe6rg=; b=NnTCLHt0bnIhoGO9fHv1YZg/PHxhnr9/h2pqsAOFcOpB8cL0YNqP5gFwg0euD2v71bNRS5G/Us57PeqNLt4Qr8bLR/ppMVhOT7jqvwViFSKYDVUQnYtYOD9eNtnNmd8Lz4yM6/0rNZFHw2wp7UK1H/wIXeq6qB2KpRdKVpa/Yg/6ZRngxTnaR6G1EsTr+dN+vgxp6UnCHPhlzyZQgNTqWEQNQeDuiKvCC7v1RVGBQV6hvhBc7ezAV8/fweTrvGaAPrQNVXWiKUj82BAmOrNwSNMsrxEIJznidJzuP5bldl4fQ9mGHw5rBEThkpDFe3dHHxiz6n6VhyHT9JpxszlOZQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1suT9O-00059V-5V for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 04:50: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, 28 Sep 2024 08:50: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.172751335119711 (code B ref 72196); Sat, 28 Sep 2024 08:50:02 +0000 Original-Received: (at 72196) by debbugs.gnu.org; 28 Sep 2024 08:49:11 +0000 Original-Received: from localhost ([127.0.0.1]:51763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suT8Y-00057q-R2 for submit@debbugs.gnu.org; Sat, 28 Sep 2024 04:49:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suT8X-00057S-6r for 72196@debbugs.gnu.org; Sat, 28 Sep 2024 04:49:09 -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 1suT7y-00011E-6U; Sat, 28 Sep 2024 04:48:34 -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=IJ2k0YG81ASLouTySl8ns/bM9TpgY8eI+unJSCAe6rg=; b=Vk/0pHIyuSSh UrxkONvAxFFgugQ3snLZhFN7f9/I1BIa3yI8czP4qmpICZ/hDCrKcRLcFcAPAdNH0RQTK4ZY0uff3 pKpYBAlOUpfc03G37vG4N0zRxzQwb8sSdr0CE/Da1NTszmI2lfR54SbZl3X3Up89ObJzL/iT92ree 3FemJnOUuRiq0Zwh4YuDWr3+NLn/Hb0eFRajFDkoh4ORCmMY/tFC0G0VAdAl16DDTkmIFnm4HiUof t05zHML9z24cNDT61zZPEzjhgXag3HcxrJ42FYCaq51jdtO5WFIFFpo6AZC4HdLgxVsQYT6tLWaLY WXz0uRT8MlJ5Uw2N4ddC1w==; In-Reply-To: <86frq2it99.fsf@gnu.org> (message from Eli Zaretskii on Sat, 14 Sep 2024 10:33:54 +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:292551 Archived-At: Ping! Ping! Ping! Ping! > Cc: 72196@debbugs.gnu.org, visuweshm@gmail.com > Date: Sat, 14 Sep 2024 10:33:54 +0300 > From: Eli Zaretskii > > Ping! Ping! Ping! Eric, please respond. > > > Cc: 72196@debbugs.gnu.org, visuweshm@gmail.com > > Date: Sat, 31 Aug 2024 10:59:20 +0300 > > From: Eli Zaretskii > > > > 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? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >