From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OIo6Osl1XWIXfQEAbAwnHQ (envelope-from ) for ; Mon, 18 Apr 2022 16:29:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kAUrOsl1XWLVIwEA9RJhRA (envelope-from ) for ; Mon, 18 Apr 2022 16:29:29 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9397A41F92 for ; Mon, 18 Apr 2022 16:29:29 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 82D125F6BF; Mon, 18 Apr 2022 14:23:55 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id BCFD15F5EE for ; Mon, 18 Apr 2022 14:23:52 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id A314A5FBD7; Mon, 18 Apr 2022 10:23:51 -0400 (EDT) Received: (nullmailer pid 1995385 invoked by uid 1000); Mon, 18 Apr 2022 14:23:50 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [Wishlist] Add equivalent of lastmod:nnn.. to sexp query parser X-List-To: notmuch Date: Mon, 18 Apr 2022 11:23:50 -0300 Message-ID: <87v8v6mpvt.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: J4GJIZPXOKV4K6GWTB37TJGGDYJOKF67 X-Message-ID-Hash: J4GJIZPXOKV4K6GWTB37TJGGDYJOKF67 X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650292169; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=4dhzabcVz2zSxTeTQP8LnbTaemupPTzhTCtBW2F6ucU=; b=dT3K67X+h6BU2dDuu7l6hqmSTrGRBxJ/V4Yj9Od9Rl6P6f7ujJ3jIREgwMHMKOzFgOnKo0 +McyDotZoiUmEqWm6YCM1SNg526EgP4YhbDh9Q+z2TvwVJdAGRviHNmCb6hRnW17ULXdpb ujxWu10z+omDxTSiN45dLWgJT9aSJr0D6vC9lxLG9A2/mU4DPz6bj7Cypdr+8k8mzvMsH1 INmd2hSvompLKY0hDKksnCgQ22dY97+HbLpY+XgaN14q11JPUXaZMrp0XIXJXzHwdP/6EC 2VeED8IjVZgYNbIxo5mROxrkqz3r3KLp2shoTKPaGGpVL8qHicHpWVhd7YauHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650292169; a=rsa-sha256; cv=none; b=Bk6hCoeqg3xXsbCw843PdMkifx/aexTnzhc7CCEUp4QyHIs1mzWSh+GOt5nRY5H3NCKLfO KqttZqenKalFwZRk7H56Gb/wDCGA30Wnh4x1a/FIcnqDX404p+nbp6LSVyhtTo+LwqTsee seBC0vs14E3/ibwLP4fxQXMvRW3POrksrQ8DSZ5J6aMZQDiQF4ybzHCUywLBot55wsjxmx SQDTpdxqqOk4uQujnXiD8vNcBL9xl2yAp7OGHA8itzFjmI1VZDEtRtfKHQRBa+UNJXDvWF SBpKxdFsoE5gxOFhW6YzwYsNMg2vy/FmBfzc23VeqM1G8dJ9gf08r00ToiSwPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 5.30 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 9397A41F92 X-Spam-Score: 5.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8b5gYljhLrDt This is mainly a reminder to myself, but also an opportunity for query language bikeshedding. Currently the sexp query parser parses '(lastmod 1234)' as equivalent to lastmod:1234..1234. This is reasonable enough, but leaves no easy way to do the equivalent to lastmod:1234.. (the other one sided range lastmod:..1234 is easy since 0 works on the left e.g. (lastmod 0 1234). This could be fixed by 1) changing the semantics of the 1 argument (lastmod 1234) 2) re-using * as in (lastmod 1234 *) 3) introducing a new reserved atom, e.g. "max" (lastmod 1234 max)