all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: eric@ericabrahamsen.net
Cc: 72196@debbugs.gnu.org, visuweshm@gmail.com
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	[thread overview]
Message-ID: <86seulcecn.fsf@gnu.org> (raw)
In-Reply-To: <86mslb4l6l.fsf@gnu.org> (message from Eli Zaretskii on Sat, 17 Aug 2024 11:18:10 +0300)

Ping! Ping! Eric, can you please respond?

> Date: Sat, 17 Aug 2024 11:18:10 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 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 <eliz@gnu.org>
> > 
> > > 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?
> > 
> > 
> > 
> > 
> 





  reply	other threads:[~2024-08-31  7:59 UTC|newest]

Thread overview: 6+ 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
2024-08-17  8:18   ` Eli Zaretskii
2024-08-31  7:59     ` Eli Zaretskii [this message]
2024-09-14  7:33       ` Eli Zaretskii
2024-09-28  8:48         ` 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=86seulcecn.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.