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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17409 invoked from network); 20 Apr 2022 19:12:35 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 20 Apr 2022 19:12:35 -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 1nhFkg-00A9uW-9P for ml@inbox.vuxu.org; Wed, 20 Apr 2022 14:12:34 -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 1nhFkf-007i9A-G5 for ml@inbox.vuxu.org; Wed, 20 Apr 2022 14:12:33 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nhFke-007i93-7z for ding@lists.math.uh.edu; Wed, 20 Apr 2022 14:12:32 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nhFkc-00DRFW-7s for ding@lists.math.uh.edu; Wed, 20 Apr 2022 14:12:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=AQrO3wB0Y30Tr5a2vOIMOvf/LEKzjja25SsPW6dd2Ew=; b=fwhZ7vnMi61YnhsYdIj2j6IwrS iaMsd66ywLg6voBrUyTIupyn1Xob97aAQ7MVSykvPA3WXlStrlZAMonpyNMn3tfxbQUd6pweegi7P jkWIDFkPSmxVey3DM8F5zkXp9OXcJ+SvhtVORYFSxSR8tWOJop6+XvkHHV22nvOKyDTc=; Received: from mail.sergiodj.net ([2607:5300:60:3666::3]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhFkV-0004kU-Ki for ding@gnus.org; Wed, 20 Apr 2022 21:12:26 +0200 Received: from localhost (unknown [IPv6:2607:f2c0:ed84:8f1:9f96:2ac9:1686:37d3]) by mail.sergiodj.net (Postfix) with ESMTPSA id 51D63A0115; Wed, 20 Apr 2022 15:12:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sergiodj.net; s=20160602; t=1650481941; bh=rSDN6rK25EvTc0zNIRVTIhChr+5EUbPEYRx6EBXUlxs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=c4kduMnZBhmmBUr53mhQTG1oxl/ABynSWKqcLBsrrhiORuTYNbM8PG5lAVkLX2/nF dsz/kwV0Jg0+uv50WEMjLYbQfMsakFznriWr75T1VJhY9U9wQCuwJXaCXMFg3+7bi4 jobD9kq+3KviPiQvjnR7YhLL5YDdweHROV9InLk8= From: Sergio Durigan Junior To: Eric Abrahamsen Cc: ding@gnus.org Subject: Re: gnus-search-imap and quoted queries References: <87mtghgikv.fsf@sergiodj.net> <877d7k7ock.fsf@dick> <875yn4g3f1.fsf@sergiodj.net> <878rs0667r.fsf@ericabrahamsen.net> X-URL: http://blog.sergiodj.net Date: Wed, 20 Apr 2022 15:12:20 -0400 In-Reply-To: <878rs0667r.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 19 Apr 2022 15:47:36 -0700") Message-ID: <87v8v3bmcr.fsf@sergiodj.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk On Tuesday, April 19 2022, Eric Abrahamsen wrote: > Sergio Durigan Junior writes: > >> On Tuesday, April 19 2022, dick wrote: >> >>> C-u G G from "Debian FTP Masters" >> >> Nothing changed. >> >>> The C-u says: >>> "I'm using Dovecot's query syntax, not Gnus's, so don't mess with it." >> >> I'm aware of what C-u does in this case, but IIUC the new gnus-search >> backend should translate my query into Dovecot's parlance if >> gnus-search-use-parsed-queries if t, which it is. Or am I >> misunderstanding something? > > It's possible that something has gone wrong with the handling of the > quotes. An easy way to tell what's Gnus is looking at is to run: > > (let* ((q "from:\"Debian FTP Masters\"") > (parsed (gnus-search-parse-query q)) > (engine (make-instance 'gnus-search-imap :literal-plus t))) > (gnus-search-transform engine parsed)) > > "FROM {20+} > \"Debian FTP Masters\"" > > I set :literal-plus because I think that's Dovecot's config out of the > box. You can also replace the ad-hoc engine there with your actual > engine, by finding it in `gnus-search-engine-instance-alist'. > > If the results look normal to you, the method to edebug is probably > `gnus-search-imap-search-command'. Thanks, Eric. As I wrote in my reply to dick, it seems to me that the query is correct. At least I was able to execute it via "doveadm search" and produce the same results as I see on GNUS. I'm thinking that the problem is with how Dovecot interprets the query (and how it doesn't seem to be searching for the exact terms, even though they are quoted). -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible https://sergiodj.net/