From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qKRbKh1E62EnZwEAgWs5BA (envelope-from ) for ; Sat, 22 Jan 2022 00:39:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8D0sIx1E62HVCQEAG6o9tA (envelope-from ) for ; Sat, 22 Jan 2022 00:39:09 +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 1E46413096 for ; Sat, 22 Jan 2022 00:39:09 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id C00F45F710; Fri, 21 Jan 2022 23:39:03 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id ECC545F705 for ; Fri, 21 Jan 2022 23:39:00 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 9216F5FC01; Fri, 21 Jan 2022 18:38:59 -0500 (EST) Received: (nullmailer pid 1049214 invoked by uid 1000); Fri, 21 Jan 2022 23:38:58 -0000 From: David Bremner To: David Bremner , David Edmondson , notmuch@notmuchmail.org Subject: strip trailing '/' from path/folder query. Date: Fri, 21 Jan 2022 19:38:47 -0400 Message-Id: <20220121233853.1049166-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <871stgid7j.fsf@tethera.net> References: <871stgid7j.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: UAO7Q7WC5UKIOLE3Y67CQMS2GFD6A3CB X-Message-ID-Hash: UAO7Q7WC5UKIOLE3Y67CQMS2GFD6A3CB X-MailFrom: bremner@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=1642808349; 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=1kEkSSYJcxbewuyry/Zjz7gG2ojZKgmRWvKE5clJHZg=; b=CKicP6uNHQ8epz/7F6vJjGEngCSOuzBQWIXG0J++sQp5X4ur7AjQHnHwHIRxMT2AttjO7S GTcMF523tXCgWRdGQiuWvR2Y7lJ5i5YCC6Sw9uvfi3NnxyXgIsHutjdgfif+jgzKqbLZEb awQE+dHNE+inbaqZ1dwVxTTCSO4PiVv8GuUHoKPThzoiejkyDM5Ka8GOv1PqK8EmnGDkhC 8UDsiLg8Q9EsXB1ko2L54w5Aw13JjdxdklAO1VjhP8/6ZvTg+x+EsExrduueu+LnbemKeg YlRo4M4KDbGUxDOi4DJpvFb6PEKEx6ESRKUaR7WI18H9pGa41Bon0Z1L3W/i+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642808349; a=rsa-sha256; cv=none; b=WAO5j2fuccxLpcKvxumT5/7cDXxz9WlXkL22DVO9e6FlK1ntC/2PZzSq+DiYOyWLMfXHqi YNa9kjr9Kbz+MRcGUgaYS96H7a/tid5+sG5NfdKSak7I8Gtq8ip55Dh9wNOndgZ5i8OEsy nAgLn91yHxMFO9OLrsoGELS6BRA/xjsfryzrABC6hZJYWciEh23lnofbeCWGORn8HRhx3g Buo3sI4KW/2URk+roMKAsQ9ri7SI7XZan1IuzpPLtM11KA6QQGUnHIfZ1R7Fy1YYaO4UeX m2EHjZ51W0OwyVc4XmcQqUMBs3Kk4hCFB2bqJVZIyMn6rL2GzW1bcNsuhe8nCw== 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: -1.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: 1E46413096 X-Spam-Score: -1.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: GOq3uYU717Wd 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.