From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QGEcOPpE62EvZwEAgWs5BA (envelope-from ) for ; Sat, 22 Jan 2022 00:42:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uNCwNPpE62Fh6QAAauVa8A (envelope-from ) for ; Sat, 22 Jan 2022 00:42:50 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 A4CDDA9BF for ; Sat, 22 Jan 2022 00:42:50 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A8B685F716; Fri, 21 Jan 2022 23:42:47 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 2C1895F711 for ; Fri, 21 Jan 2022 23:42:44 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 455985FC01; Fri, 21 Jan 2022 18:42:43 -0500 (EST) Received: (nullmailer pid 1052667 invoked by uid 1000); Fri, 21 Jan 2022 23:42:42 -0000 From: David Bremner To: David Edmondson , notmuch@notmuchmail.org Subject: Re: strip trailing '/' from path/folder query. In-Reply-To: <20220121233853.1049166-1-david@tethera.net> References: <871stgid7j.fsf@tethera.net> <20220121233853.1049166-1-david@tethera.net> Date: Fri, 21 Jan 2022 19:42:42 -0400 Message-ID: <87bl04fyfh.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 4T2WN3A7PMERBUD3JISHRAE4MKUB32PU X-Message-ID-Hash: 4T2WN3A7PMERBUD3JISHRAE4MKUB32PU 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-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642808570; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=ZbpYGf77GyJCQuC5o4rFRjcFGbfxk23APZMcZU6YNlY=; b=n90aUk6Xm008HZKOrd8mvcy9qxYQhnubp3DVW681A3VZx3JB5tuo8fz6CnjCEdC3W0+BA3 WvptzZVPjBIG1MJnZjs/6Yur7VW05oSkOhzkFq5hzPR/LIRc6G337zSkQvH1QCn6f21cVM QJCuoBSFLky2Sc7ESvwe6wn/uJeAEML0GpXnMFBzz62XlzdGkwciQYGx/1Koar9qbA3jX1 fpH9qhBuQ8nPoRZYk2PxP4YafsJrPrxJzygMndmUuOXv2ukhnxhCutHOv7h735doDLcKIT r0qmDPiUeXl3t/WTv8Ai4kVT3eWeNGh09/tK4XXJ9Q273ovUDkPLfKBsdJL5FA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642808570; a=rsa-sha256; cv=none; b=jUhtYYigdsByg8EC7K0/2gjNaWLZqDnirCdEu+soSyS+huBaX8VJjJ7+75bY3mALHQGe0N rVmSWlb5v9A/frhOoT4P3Arq9tLqyvQxcMRKGL7pntONGTAbXe/TygctaOY/1CZ0SJaB7F 0w/k0KpuyY/4WkTPwRyVx4C9cSH0m0Hh3UGFXBf7dgBxwPASh0Dz+S2/RuYl2xYb1UfpK+ Zbu7VK4d2QKXAp5Huz7R2pe4P2U1gRp0I30ndAhW6EfhT0fmvjP9kla5qiMjVQCHM2hDAD A3eaHEOmjUsi6j6i6wTVtN7Za+YAel8rfjwCPxzf9rhG0N/KKqN4UjeocOlckA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.82 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: A4CDDA9BF X-Spam-Score: -2.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: I0Qgzc7/8o2b David Bremner writes: > It would not be that much more work to strip any number of '/' > (instead of just 1) for infix queries, but this change already covers >>99% of the issues with path completion. Apologies, I knew there was something else I meant to say here, but blanked. This series is intended to be applied on top of [1]. The order could be changed, but they are both adding a flag to the sexp parser. [1]: id:20220120133605.31401-2-david@tethera.net