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=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13914 invoked from network); 4 Nov 2020 18:15:54 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 4 Nov 2020 18:15:54 -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) (envelope-from ) id 1kaNJ1-00DwLB-EH; Wed, 04 Nov 2020 12:14:47 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1kaNJ0-008sFI-Nh; Wed, 04 Nov 2020 12:14:46 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kaNIw-008sDe-QF for ding@lists.math.uh.edu; Wed, 04 Nov 2020 12:14:42 -0600 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) (envelope-from ) id 1kaNIt-00DwIx-Kj for ding@lists.math.uh.edu; Wed, 04 Nov 2020 12:14:42 -0600 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=IwJucNYm4+KjF+6ot8pyYr/h4+KxWx8nCzTsxcdW9OY=; b=W0Nb4dTA9gBlY6nHet86wGsjL8 07fcP+CjHZZVwlg4q5ewZuQu8LB3Xc6ewRbJ3GWVqv0xFtl4N36wgp21r/v0ma8Rkvfl3YeJbDJry Pw3N09SIn1W0tioW+ZbG9C+fIKmcM8gOlji9qfG6/RQXhu02SzPYAuFWE1s+D4iGtGhA=; Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kaNIm-0008TH-PG for ding@gnus.org; Wed, 04 Nov 2020 19:14:35 +0100 Received: by mail-pf1-x42e.google.com with SMTP id z3so11587495pfz.6 for ; Wed, 04 Nov 2020 10:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:organization:references:mail-followup-to:date :in-reply-to:message-id:user-agent:mime-version; bh=IwJucNYm4+KjF+6ot8pyYr/h4+KxWx8nCzTsxcdW9OY=; b=JeHbcMNUnXGqLlya4WUWDNWG+zH4OwNjUpCtBMmFERHeMkfrWT4XPHgzAJbHDPqCyl wqjp0m8E6Sle1+pduT/rWECulAK8dFsVzVkieut1LsOW9sOB0bS9gtjO4JndgM2YiEAA k8KZ7TBTGV4IC4UlPrr1fHTYcxMrFCcVI9IK3wyWGxmu9bQJB9Ke+e7vU8NZo/nDUJiq sle9CEXMRGVY4R3gO/luL3AM/ZF+/Du0mH/7bRqJg8U9hSwrxPf8Hxlk6NbfOXaAz4RZ HgqDTOzmzpEybAkHCs0fuO9JLKHqAciGiLYhomtSaB7veF/dv7YdU0u+4r2L7bHY+peb tvcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-followup-to:date:in-reply-to:message-id:user-agent :mime-version; bh=IwJucNYm4+KjF+6ot8pyYr/h4+KxWx8nCzTsxcdW9OY=; b=kGTmtGzqzJe/rNoW3E6JtnM7yJdCpZXIdf4ssvvV+VwbWvoVTJON61Zektom3P8HX3 vkgS9iFo0GoV5X6aOWoDTocqiYuHF9uvdaunXHSnV+p2ZGGdS9rF4HG8HotnE82v4bRE ofrSXsdCRcNHyvG1Z8A53LljxkBidq9j9exVbJLv9hJQQBXs1+dCJdfne/PT+F9Gzthc B2ILWTmNLUSvEEbHhLlHWrqo9UWw0nRi2vpZnGKuEd6gPuuP0Ednj9NMm5HxRMRO2WRS H0AU+AUFJXngLcsIzRvT7MyGdlQ8nc3wK+ri5PGr9b+YnAHpJpq+GiHqaVBmn07eLOk6 BCFQ== X-Gm-Message-State: AOAM531rxlNw8t++lDsnH0yrfFZo/tAuE1O20GVYMgj8BFGhGi+YhKi+ ZHa+7iP3ZYGOsbmyAyXt8AeWwYSI+i8F+Q== X-Google-Smtp-Source: ABdhPJzHFk2spkaQKZD1lN3xxtyNs4EELv4U2pMzgoXZoXVRM0RUBgmeirFAHc/gdJt0uZbU88Hg0w== X-Received: by 2002:a17:90b:4a02:: with SMTP id kk2mr5312901pjb.95.1604513670532; Wed, 04 Nov 2020 10:14:30 -0800 (PST) Received: from mb2.local ([2405:201:5c06:7812:84d0:da96:d407:178d]) by smtp.gmail.com with ESMTPSA id a28sm3100214pfk.50.2020.11.04.10.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 10:14:30 -0800 (PST) From: Pankaj Jangid To: Eric Abrahamsen Cc: ding@gnus.org Subject: Re: New "gnus-search" syntax and interface Organization: Code Is Great Foundation References: <87blgdavsb.fsf@ericabrahamsen.net> Mail-Followup-To: Eric Abrahamsen , ding@gnus.org Date: Wed, 04 Nov 2020 23:44:27 +0530 In-Reply-To: <87blgdavsb.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 04 Nov 2020 09:15:00 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk Eric Abrahamsen writes: > Under default settings, it should do nothing at all, and searches > should behave exactly as before. The nnir.el library has been moved to > lisp/obsolete, so code that requires it should not break, but it is no > longer needed. > > If anything breaks for anyone out of the box (though it shouldn't), > please let me know right away! > > Past that, the fun stuff comes if you set > `gnus-search-use-parsed-queries' to t. That will enable the > "generalized query syntax", a single search syntax that can be used > across any supported search engine. That means you can mark an imap > group and a maildir group indexed by notmuch (for instance), and issue > a single query against both. The query will be parsed and transformed > into strings that the engines accept, and you'll get the expected > results. > > It also opens the door to some nice conveniences. You can search by > Gnus mark, for instance. Or issue relative date queries like > "since:4d" for messages in the last four days (no need to remember the > IMAP date format!). Or "limit:20" for just some results. If you use > EBDB, I've already pushed a change so you can auto-complete contact > names or email addresses on keys like "from" or "to" or "cc". I'll > propose a similar addition to BBDB soon. > > The syntax is fully documented in the new "Search Queries" section of > the Gnus manual, but basically it looks like this: > > (from:bob or from:jane) -to:sam since:2w subject:"sam's surprise > party" > > Terms can be negated with a minus sign, as above, or with a preceding > "not". Terms can be auto-completed with TAB, or you can leave them > abbreviated so long as they're not ambiguous. So the query above could > be: > > (f:bob or f:jane) -t:sam sin:2w su:"sam's surprise party" This is real convenience when you have lots of email servers/groups. Thanks for this stuff. I have already played with it for an hour or so. > You can shut off the parsing and use the native syntax of whatever > group you're searching on a per-engine, per-server, or per-search > basis. See the manual for details. Who would do that now.