all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Michael Welsh Duggan <mwd@md5i.com>
Cc: 45770@debbugs.gnu.org
Subject: bug#45770: 28.0.50; `gnus-search-run-search' for imap does not take parentheses into account
Date: Sun, 10 Jan 2021 10:36:01 -0800	[thread overview]
Message-ID: <87eeisljvy.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87ft388yy7.fsf@md5i.com> (Michael Welsh Duggan's message of "Sun, 10 Jan 2021 12:49:04 -0500")

Michael Welsh Duggan <mwd@md5i.com> writes:

> When using the `gnus-search-imap' backend for `gnus-search', there is a
> bug in the `gnus-search-run-search' method.  When the search query
> begins with parentheses (such as "(OR FROM A FROM B)"), the naive check
> for a known IMAP keyword at the beginning fails due to the parenthesis,
> and gnus-search adds "TEXT " to the beginning of the query.

Thanks for the report. This is a known problem, one which I actually
thought I'd already fixed! But apparently I wavered on whether the
TEXT-appending "convenience" was actually a convenience or not, and then
got distracted.

> Moreover, these are several search keys that are not in
> `gnus-search-imap-search-keys'.  These are "new", "not", "old", and
> "or".

Thanks for "new" and "old", I missed those somehow. I was thinking I'd
just check for "not" and "or" explicitly. Anyway, I'll get this fixed
later today.

> I include a minimal patch for these problems.
>
> There's another misfeature which I have not attempted to fix that made
> debugging the problem much more difficult.  If the result of a query is
> not OK, this fact just gets ignored by `gnus-search-run-search' and the
> search group is considered empty.  Even after fixing the above problems,
> this is a problem when doing a raw search, as one doesn't know whether
> the query is bad or if it just does not result in any messages.

This is another known problem, one that is requiring some coordination
with Andy Cohen on the nnselect backend (it's actually nnselect that is
swallowing the errors). This will get fixed before too long.

Thanks,
Eric





  reply	other threads:[~2021-01-10 18:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-10 17:49 bug#45770: 28.0.50; `gnus-search-run-search' for imap does not take parentheses into account Michael Welsh Duggan
2021-01-10 18:36 ` Eric Abrahamsen [this message]
2022-05-09 13:57   ` Lars Ingebrigtsen
2022-05-09 15:16     ` Eric Abrahamsen
2022-05-09 15:17       ` Michael Welsh Duggan
2022-05-09 15:54         ` Eric Abrahamsen

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=87eeisljvy.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=45770@debbugs.gnu.org \
    --cc=mwd@md5i.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.