Gnus development mailing list
 help / color / mirror / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: "Herbert J. Skuhra" <herbert@gojira.at>
Cc: ding@gnus.org
Subject: Re: nnir: subject search finds matches, whole message search doesn't
Date: Sun, 07 Jun 2020 11:32:31 +0200	[thread overview]
Message-ID: <874krnrzkg.fsf@gnu.org> (raw)
In-Reply-To: <20200607083014.GA58902@mail.bsd4all.net> (Herbert J. Skuhra's message of "Sun, 7 Jun 2020 10:30:14 +0200")

"Herbert J. Skuhra" <herbert@gojira.at> writes:

> On Sun, Jun 07, 2020 at 10:12:57AM +0200, Tassilo Horn wrote:
>> Hi,
>> 
>> I was just wondering why a subject search for a given term finds matches
>> whereas the whole message search does not?  Doesn't "whole message" not
>> include the subject?
>> 
>> This is with IMAP.  Where do I have to look which actual requests are
>> sent to the server?  Maybe it's an issue on the other end...
>
> +-----
> nnimap-record-commands is a variable defined in ‘nnimap.el’.
> Its value is nil
>
>   This variable may be risky if used as a file-local variable.
>
> Documentation:
> If non-nil, log commands to the "*imap log*" buffer.
> +-----

Ok, so this is a successful subject search:

  UID SEARCH SUBJECT "text" SUBJECT "quotes"
  UID FETCH 173542,173554,173564,173728,174322,174333,174351,174396:174397 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Cc Keywords Gcc Newsgroups X-GM-LABELS)])

And that's the full text search which fails:

  UID SEARCH TEXT "text" TEXT "quotes"
  NO Search taking too long - try reducing the set of messages searched

And indeed, the search takes about 20 seconds before stopping.  And now
after doing the same search in the Fastmail web interface leading to
thousands of results I realized that it searched for any message which
has both text and quotes somewhere in my emacs-devel group.  Obviously,
there are many such messages.

I actually wanted to search for the exact string "text quote".  I just
learned that I get this result when I type in the query with
double-quotes and then the search finishes and finds what I was looking
for.

Bye,
Tassilo


      parent reply	other threads:[~2020-06-07  9:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-07  8:12 Tassilo Horn
2020-06-07  8:30 ` Herbert J. Skuhra
2020-06-07  9:15   ` Tassilo Horn
2020-06-07  9:32   ` Tassilo Horn [this message]

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=874krnrzkg.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=ding@gnus.org \
    --cc=herbert@gojira.at \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).