From: Eli Zaretskii <eliz@gnu.org>
To: Visuwesh <visuweshm@gmail.com>,
Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: 72196@debbugs.gnu.org
Subject: bug#72196: 30.0.60; gnus-search-indexed-search-command passes incorrect maildir argument to mu
Date: Sun, 04 Aug 2024 10:22:16 +0300 [thread overview]
Message-ID: <86ed74u507.fsf@gnu.org> (raw)
In-Reply-To: <8734o5zrug.fsf@gmail.com> (message from Visuwesh on Fri, 19 Jul 2024 14:22:23 +0530)
> From: Visuwesh <visuweshm@gmail.com>
> 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?
next prev parent reply other threads:[~2024-08-04 7:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-19 8:52 bug#72196: 30.0.60; gnus-search-indexed-search-command passes incorrect maildir argument to mu Visuwesh
2024-08-04 7:22 ` Eli Zaretskii [this message]
2024-08-17 8:18 ` Eli Zaretskii
2024-08-31 7:59 ` Eli Zaretskii
2024-09-14 7:33 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86ed74u507.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=72196@debbugs.gnu.org \
--cc=eric@ericabrahamsen.net \
--cc=visuweshm@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.