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 14731 invoked from network); 20 Apr 2022 18:49:58 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 20 Apr 2022 18:49:58 -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 1nhFOm-00A6qW-3j for ml@inbox.vuxu.org; Wed, 20 Apr 2022 13:49:56 -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 1nhFOl-007i2w-JH for ml@inbox.vuxu.org; Wed, 20 Apr 2022 13:49:55 -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 1nhFOj-007i2n-8H for ding@lists.math.uh.edu; Wed, 20 Apr 2022 13:49:53 -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 1nhFOh-00DOL8-6Z for ding@lists.math.uh.edu; Wed, 20 Apr 2022 13:49:52 -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=tr+KCf+YAkBYxzBb2XDLOSPXuBbXEURkjzXq8k32Pzg=; b=lMtQaV7amwZFLCMjnHtML93bG3 VWSXrh0XxymUoaRqkIcuEs2YsEt+DnEdKxVtbqxaAoa68Bnx5xaIJai5iPgPQxwFwzpU1BtvdIS/l WqyJQOUpFWPf3HM43YsTFPbuM7TU9kJg0Zi7aOHpqeI/VV7BbjRQFKK03CpeQbIbTuM0=; Received: from mail.sergiodj.net ([167.114.15.217]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhFOZ-0004Yb-ME for ding@gnus.org; Wed, 20 Apr 2022 20:49:46 +0200 Received: from localhost (unknown [IPv6:2607:f2c0:ed84:8f1:9f96:2ac9:1686:37d3]) by mail.sergiodj.net (Postfix) with ESMTPSA id C0E80A0115; Wed, 20 Apr 2022 14:49:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sergiodj.net; s=20160602; t=1650480580; bh=55sMQea0ffjyA0GHUMaKUBTc5dX82yhdu95KejQI8gU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=mBErjYe3ndASaf0TvefWxYw2suNOI07mN9xGFTxnhYBLiHshvbqCjPJp85sAU43Qw TEI4SDtKcuhgtcLDyf8OnuTactZQQMZ+eFk2zJr22y1/vOSgwPk9zmMG3K6fnx6kSb PaLVSMuQUXFoZwLkuGa9k4QkgfcnibMUC/xkp5/s= From: Sergio Durigan Junior To: dick Cc: ding@gnus.org Subject: Re: gnus-search-imap and quoted queries References: <87mtghgikv.fsf@sergiodj.net> <877d7k7ock.fsf@dick> <875yn4g3f1.fsf@sergiodj.net> <8735i87m9j.fsf@dick> X-URL: http://blog.sergiodj.net Date: Wed, 20 Apr 2022 14:49:40 -0400 In-Reply-To: <8735i87m9j.fsf@dick> (dick's message of "Tue, 19 Apr 2022 18:15:36 -0400") Message-ID: <878rrzd1yz.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, dick wrote: > SDJ> I'm aware of what C-u does in this case, but IIUC the new > SDJ> gnus-search backend should translate my query into Dovecot's > SDJ> parlance > > Transpilation, even for a simple grammar, is a lot to ask from an > obscure 25yo mail user agent. Even if that had been done, it wouldn't > have been done well. gnus-search is new, but as far as I have seen it works surprisingly fine for several backends, IMAP included. > At this point I'd `C-u C-M-x` on > > (cl-defmethod gnus-search-run-search ((engine gnus-search-imap) I did that. The query I was using got translated correctly into: "FROM {20+}\n\"Debian FTP Masters\"" and then passed to Dovecot. I tried invoking "doveadm search" directly on the command line passing the query GNUS is using and noticed that the results are the same, i.e., it didn't do an exact match on "Debian FTP Masters" and ended up returning emails from "Debian Bug Tracking System" as well. At this point, I think it's safe to say that this is an issue/idiosyncrasy of Dovecot or IMAP itself, and not GNUS. Apparently it's not possible to do a search for exact terms using quotes. I will keep investigating, but I wonder if someone else has experienced this as well. Thanks, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible https://sergiodj.net/