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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24709 invoked from network); 19 Apr 2022 22:48:09 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 19 Apr 2022 22:48:09 -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 1ngwdj-009WkK-Dc for ml@inbox.vuxu.org; Tue, 19 Apr 2022 17:48:07 -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 1ngwdi-007gIM-Mv for ml@inbox.vuxu.org; Tue, 19 Apr 2022 17:48:06 -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 1ngwdg-007gI6-GK for ding@lists.math.uh.edu; Tue, 19 Apr 2022 17:48:04 -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 1ngwde-009Wjv-82 for ding@lists.math.uh.edu; Tue, 19 Apr 2022 17:48:04 -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=z9cWrfJliRZBXXXHn+iCk0ODHanQPnz9I57Ad61UUpI=; b=EzGxrz4VtmCA1ypLVKTsMhV6md BfcyfMDYvT0otAOjaoUxD8GN5Wu8Qy8lRwe12O/uNOMeF7BdTbpFH+1lg2ZL+GjP1Bd4z7Q5BUTC6 vkap9tq3i4irK59/fVBUhMUcaOHGk4nVsTtvVkDzsvIKs6Qvb+QMV1sZeT5zIiVOJFW8=; 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 1ngwdW-0003gr-22 for ding@gnus.org; Wed, 20 Apr 2022 00:47:56 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ngwdT-0009VS-Sb for ding@gnus.org; Wed, 20 Apr 2022 00:47:51 +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, 19 Apr 2022 15:47:36 -0700 Message-ID: <878rs0667r.fsf@ericabrahamsen.net> References: <87mtghgikv.fsf@sergiodj.net> <877d7k7ock.fsf@dick> <875yn4g3f1.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:W81jl4M1+yp6r6WKizR1ynXrhww= List-ID: Precedence: bulk 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'. Eric