From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OM18AMtBGGK+bgAAgWs5BA (envelope-from ) for ; Fri, 25 Feb 2022 03:41:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eJbbOMpBGGIEbgAAauVa8A (envelope-from ) for ; Fri, 25 Feb 2022 03:41:14 +0100 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 E9B123906E for ; Fri, 25 Feb 2022 03:41:13 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id C87A65F6D3; Fri, 25 Feb 2022 02:41:10 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6C5A75E00C for ; Fri, 25 Feb 2022 02:41:08 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 1CDFD5FBD7; Thu, 24 Feb 2022 21:41:07 -0500 (EST) Received: (nullmailer pid 1026678 invoked by uid 1000); Fri, 25 Feb 2022 02:41:05 -0000 From: David Bremner To: Sean Whitton , notmuch@notmuchmail.org Subject: fix for parsing bracketed expression Date: Thu, 24 Feb 2022 22:41:01 -0400 Message-Id: <20220225024103.1026629-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <87y221txsi.fsf@athena.silentflame.com> References: <87y221txsi.fsf@athena.silentflame.com> MIME-Version: 1.0 Message-ID-Hash: YPGHD6KFE2IWX2KKTGWPISKHVI7IYLQE X-Message-ID-Hash: YPGHD6KFE2IWX2KKTGWPISKHVI7IYLQE 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=1645756874; 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=C6g5qOM3G6UnigE13SpIi1J7Upl5ys7ABFc/Y3zPuvI=; b=ayRkqIwub6dTOViNgsOSJppjWifObLdowIpiP2YC0lAP7uoo3EOf6hmr8MqCLWhBu+gmZe 8QQz5jY986fRXDE/oU2YAXBapzZ+B85PClPRK/GZsfwT0wK2IIy77KL5tP9Vhhs15w1uX+ SAjflJtAvc2eTkuw9Tt2epaC+7fSgeyyRhVWF13ZXwmg8X9xCmdScd9rFMLTS2qORoXvLV H/iwqtargOZtDgw7W3GP96+ekH58zI8eqHUkDfCj2flbR3PkpJrIqy74mj9nY+j1Cgolgu cljzGpjyu/7GlvaMC49e8X/TkVUN/4hbCemotuQmF8uqYK469a8qAXVETxVjiw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645756874; a=rsa-sha256; cv=none; b=DeSuscMnNmIfyDn+nm9k0OebB601DPs3/ePJ7AkTOs6LEdOj4Pc/Q5b5K7Pt22mJD2co9t ED+McxQ/+Lqhjuv3yqOPprMHDoJpmD9ugAs0pahXh0K6z1jobw6rh+ahO6ESndHO59XWa/ Ljh+w5TFSkxVG5spkQsma12yOiBP0EJ9T/wqD7OoVzHEPYHfNjaqfRbgxKeO2QQr4LD632 yG1wn3aZ8J12HrWx/PITEyqP9YbMyfgGOXuIwPoty1crCQRbPyNWr0hA7yMbaNtf4l5Vr2 QvxTf6FHgTKd6YF9sUi98+E04x32i+kDCO5gtzSVOcTxtgOpG8iHDolE9QBxUA== 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: -0.83 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: E9B123906E X-Spam-Score: -0.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: i1NVvQzcfvmU This is not a complete fix, which is hard because of the way we implement regular expressions. Sean's original examples still won't work, but hopefully the tests in the second patch show how to make something similar work. This is probably a good time to mention that this kind of thing is easier in the sexp query parser. d