From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GN66NSTevmKyAAEAbAwnHQ (envelope-from ) for ; Fri, 01 Jul 2022 13:44:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4GStNSTevmKWDwEA9RJhRA (envelope-from ) for ; Fri, 01 Jul 2022 13:44:36 +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 8639A81D9 for ; Fri, 1 Jul 2022 13:44:36 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 769455F7E1; Fri, 1 Jul 2022 11:39:14 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5FB485F7CC for ; Fri, 1 Jul 2022 11:39:12 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id B03AB5FBD0; Fri, 1 Jul 2022 07:39:11 -0400 (EDT) Received: (nullmailer pid 112611 invoked by uid 1000); Fri, 01 Jul 2022 11:39:10 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: v2 parameter expansion for regex and wildcard sexp queries In-Reply-To: <20220615121447.1465635-1-david@tethera.net> References: <20220615121447.1465635-1-david@tethera.net> Date: Fri, 01 Jul 2022 08:39:10 -0300 Message-ID: <87y1xdf4f5.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: GHBN66MTVVWM7MDPSXVM7RNW56YASGQL X-Message-ID-Hash: GHBN66MTVVWM7MDPSXVM7RNW56YASGQL 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=1656675876; 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=layCn6g88H9kuolcbrrfm6wxmiJ9B7ZG9sS9oKxC+9s=; b=eKKfX1etmmPKm4cjs74hXJPBIbup+xgyJVnOhVU+QKlze1m9qE9mp5Xt29o6ZUmvBHvXbY bdqBlNrDWvjCDzrrqUgLU+lksjsl2Mfbf9M/+Fyx8SPNlygML2/+cmTSi2WQV75AYXtssd V1MGMaExp0mfUhH7JpDWzZbIkgjZE0ahiE/DvPZgf4epnfcqwd7/shix369nuRYXcNsL67 UrloKpYYesVPtyC09uPcU1LnbmnZ8UxYO0U1SfNeOIAISe3HbO8DhVOqBdcj5sMrlze2Qe JvLcd4/sg9vZMOsE/WzZKzVaibyhWZppgIO+dhD8BLbwXYpZtVnppZfCBSq1mQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656675876; a=rsa-sha256; cv=none; b=KujzhspWNmjr6w2xflusc0PGmscNvpauCxUzibu2sJYM0BOEJZFjeXxfaYF2ws7qH59wYz rr92I7iMq/3Rw+BYD5FkqSreRIyU5kLVJb7hC978WLjiN3kCmKZCiqOI0Djaey4rJc9BPf JU3cJr2C8TNo4B9vyy3MrnDGAR58GeBh4YQ+G3BcpGodaHKuisgaZYO8EIIa8rAYX14ApY azOIFMspLSpQf8AfsjaLD/hjjTjJOAKQCk8o3vReEh0D7zKSJDLaUWpowtMP4aMDEoyK2s fbIMLfeWTozDie392DWCyc6zsfrzM1oUecwUz+xW3By0VvMPp92P1TxsBqoB5w== 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: 4.24 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: 8639A81D9 X-Spam-Score: 4.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: rvux7w3PTRbz David Bremner writes: > This obsoletes the series at [1]. > > Compared to the previous series, this refactors environment search to > avoid code duplication (and remove slightly confusing 'break'). There > is a slight adjustment to error messages via this unification. > > More importantly, this avoids a bug [2] with unknown parameters in the > previous version, and does error checking consistent with the other > places parameters are expanded. > > [1]: id:20220614112217.1094083-1-david@tethera.net > [2]: infinite loop! Series applied to master d