From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 6KgLBA3PqWIb1AAAbAwnHQ (envelope-from ) for ; Wed, 15 Jun 2022 14:22:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2MMABA3PqWJZvQAAauVa8A (envelope-from ) for ; Wed, 15 Jun 2022 14:22:37 +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 AC4B38B2F for ; Wed, 15 Jun 2022 14:22:36 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B1FF75E538; Wed, 15 Jun 2022 12:15:00 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 78DF35E223 for ; Wed, 15 Jun 2022 12:14:57 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id D66245FBD7; Wed, 15 Jun 2022 08:14:55 -0400 (EDT) Received: (nullmailer pid 1465799 invoked by uid 1000); Wed, 15 Jun 2022 12:14:54 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: v2 parameter expansion for regex and wildcard sexp queries Date: Wed, 15 Jun 2022 09:14:45 -0300 Message-Id: <20220615121447.1465635-1-david@tethera.net> X-Mailer: git-send-email 2.35.2 MIME-Version: 1.0 Message-ID-Hash: N7EIFTDJCO2APYRTWCXUNN3W7PQI6HGZ X-Message-ID-Hash: N7EIFTDJCO2APYRTWCXUNN3W7PQI6HGZ 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-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=1655295756; 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=2jEQGEFpJxUUYDt7q2XTxHJPdQqAS2zQr/q9+CAkyNs=; b=fbDw0ZtALdQdt6EkaDytlsSj1WeCtUW59R5Gk29ebSxoWwwrtNkdZtOfPPX+jbiWbgP6qw TwunD9BT7OCTSr6yJ+yl2fvvGXtchFjrbW3YPXd055MteI+0J+NBS48FF8ts9lQfVa9Hwx zLDs2L6I4PWhCy5Gc4cH3UKn0H9tOsBRDVXwvQ7BuOqkZIDe415BuqZwSYUVFTi9KjFcaW KZkcOjoJuaz1v6AP31lpxZF1E+D7EWfqUO6uiRhCKrR9xQhwJECROpSmxMd92bVy76v0p+ Ss9tc7XNJphrsc41KElhipl9BAXNb3GOiwWOLSo1i1cCi69x2TPXLiobm0qkkg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655295756; a=rsa-sha256; cv=none; b=RbmDdv6bB0jtxbsYV0CcdzbjpPIAZ3yhXakxVw2pLqaWuvC4v2zotp0kxaVU9KxZogvbOH 6Uc/AVoUQ/uFhwu4UfJN8y9Nq1M4x2ZpCID9bLcBD0vmh57lHiZ8xbmPVZLdonfpUGx+ym ZMqOxZO0+Nc/hV9smtbVcerXnUcdueC3JqPaXala8suJc1q/h3GEzGHVl5QqlealAuHmIP YZfqu9VhR7ZDDTVLPOdkSmK/1yYn+0HlSdhRzkVNmaTwZ2OzvMzoV69qkNFNx/V5OiXmBo lFeynUYByNGboGDrDoCdMLhRpwTF6xZZtyGws4TFw6su3M1g8X5sGrUhyuZ6WA== 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.94 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: AC4B38B2F X-Spam-Score: 5.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: T72gICF3aUM6 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!