From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9859 invoked from network); 3 May 2022 20:02:06 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 3 May 2022 20:02:06 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nlyig-0023xl-OC for ml@inbox.vuxu.org; Tue, 03 May 2022 15:02:03 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nlyig-008BlL-5d for ml@inbox.vuxu.org; Tue, 03 May 2022 15:02:02 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nlyie-008BlE-Tj for ding@lists.math.uh.edu; Tue, 03 May 2022 15:02:00 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nlyiY-0023xU-QF for ding@lists.math.uh.edu; Tue, 03 May 2022 15:01:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Tz6fHJvXLzWxCGBCnNY/W4umjdoVnoiBRJN2eM40cx0=; b=pBjScjS8JvkQ3GRL4sSj8lYida 4AMQZ21C07vrbYNV1a22fY9+QwL3BkhwWAvEkF99+bqAiN3paNc1GIbUkz7yTVA2GAHSEpJ3x2EER JVANCDlmqKEic1dInbjMm9rCHOmqM8G192zqlTj96zXRB8NPxzNg3Ohc8/v4+gXwlTQ8=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlyiQ-0001d3-Qx for ding@gnus.org; Tue, 03 May 2022 22:01:49 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nlyiP-00035U-4A for ding@gnus.org; Tue, 03 May 2022 22:01:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: gnus-search-imap and quoted queries Date: Tue, 03 May 2022 13:01:37 -0700 Message-ID: <875ymmmllq.fsf@ericabrahamsen.net> References: <87zgkbhjpm.fsf@ericabrahamsen.net> <8735htj0ly.fsf@sergiodj.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:NPr/uxDZ26vsQCHMk4k4Y+mpi8Q= List-ID: Precedence: bulk Sergio Durigan Junior writes: > On Saturday, April 23 2022, Eric Abrahamsen wrote: > >> Sergio Durigan Junior writes: >> >>> On Tuesday, April 19 2022, I wrote: >>> >>>> I have GNUS configured to use a local Dovecot IMAP server (a fairly >>>> common setup, I think) and I've been trying to get gnus-search-imap >>>> working. I set gnus-search-use-parsed-queries to t, by the way. >>>> >>>> I noticed that when I specify a quoted query as the search input, the >>>> results don't reflect what I'd expect. >>> >>> FWIW, I finally had some time to look deeper into this and found that >>> the culprit was the Dovecot FTS plugin I was using (fts-xapian). >>> It doesn't follow the IMAP RFC strictly and therefore can't/won't do >>> substring searches. >>> >>> I'm now using another Xapian-based plugin called fts-flatcurve which >>> DTRT. >>> >>> Thanks for the help, it's been fun investigating this problem. >> >> Hey that's pretty interesting. Looks like I'm using lucene, which seems >> to work fine. I wonder if it merits a brief mention in the manual that >> different backends behave differently. > > I certainly wouldn't mind seeing this possible idiosyncrasy mentioned in > the manual. WDYT about the patch below? > > -- > Sergio > GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 > Please send encrypted e-mail if possible > https://sergiodj.net/ > > From ff85d8b3df751342de6b0071b9c17688086fe744 Mon Sep 17 00:00:00 2001 > From: Sergio Durigan Junior > Date: Sun, 1 May 2022 01:11:42 -0400 > Subject: [PATCH] Mention different behaviours in IMAP FTS plugins > > * doc/misc/gnus.texi (Search Engines): Mention different behaviours in > IMAP FTS plugins. > --- > doc/misc/gnus.texi | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi > index e51ae7d424d..03330224e09 100644 > --- a/doc/misc/gnus.texi > +++ b/doc/misc/gnus.texi > @@ -21727,6 +21727,13 @@ Search Engines > to manage updates yourself, though this will likely change in the > future. > > +If you use the IMAP search engine you may want to configure your IMAP > +server to provide Full Text Search (FTS) functionality, which greatly > +improves the performance and results. Beware though that some FTS > +backends may not implement text search as described by RFC 3501, which > +states that substring search should be performed. This difference in > +behaviour can ultimately affect the search results. > + > Lastly, all search engines accept a @code{raw-queries-p} option. This > indicates that engines of this type (or this particular engine) should > always use raw queries, never parsed (@pxref{Search Queries}). Looks good to me! Thanks.