From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 IFKIBVHfvmLboAAAbAwnHQ (envelope-from ) for ; Fri, 01 Jul 2022 13:49:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oBmNBFHfvmKt+wAAG6o9tA (envelope-from ) for ; Fri, 01 Jul 2022 13:49:37 +0200 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 CE2B68379 for ; Fri, 1 Jul 2022 13:49:36 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DE5685F7EC; Fri, 1 Jul 2022 11:41:07 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id B4C435F7CC for ; Fri, 1 Jul 2022 11:41:04 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 0403C5FBD0; Fri, 1 Jul 2022 07:41:03 -0400 (EDT) Received: (nullmailer pid 112661 invoked by uid 1000); Fri, 01 Jul 2022 11:41:03 -0000 From: David Bremner To: erik colson , notmuch@notmuchmail.org Subject: Re: sexp and strings In-Reply-To: <874k0oz9uq.fsf@tethera.net> References: <87o7yxqxy6.fsf@code.pm> <874k0oz9uq.fsf@tethera.net> Date: Fri, 01 Jul 2022 08:41:03 -0300 Message-ID: <87tu81f4c0.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ZMTNVSW3Y4SPNDFPFCFGCH3H4ZZ23N3F X-Message-ID-Hash: ZMTNVSW3Y4SPNDFPFCFGCH3H4ZZ23N3F 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=1656676176; 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=XABhkKqBbflTPnT+Zcv2mGv+ALoKVWJ8mJA+Fc3PppE=; b=mwxLLc8zL0XVLIs7PbMEgW1aitLgufrSVxWql+MqwHMU+FRoUgQIt9edPCJTENHQM/XtN9 0EYcArzjGP3GG9CnUzW8fCuoS8WAas3T3F/jEW5UmFkbUUzytCn90gqfqUmEhLeoobgOai CxJT0hzRD1M3ahoBAwKUTgK1NnKpL+DyHd7Mu1l9Lkss0lEeENTgRuzfDLwkNL1ARfYhCn XE46KShKhC2jZxD6U9D6YbR4zAvE5CdY7IIpMcHErouVYIsjQUyJFRFahCwSfA7o07GIgE x9/xBAuY9nUFAmiG8E89UhseYTnOC6f94Eyk1wSMkN9b1ToJ3ReFpfjcv4g5SQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656676176; a=rsa-sha256; cv=none; b=ueCMp8ilOoMK9BtW8nvjj52tBGQ2jw+PsfB57UV62tsx0ZDsdA8kX4AgCOO8XiWQX8rQGy Dg9JzCqGGmVFAZMi2i19bF4qZ3j8l9ye3sGGPpJcsKaPShkln4F0BxmfrU69IUsZCd4/6S OsCbRqIsoC4htO84bbVxdps7fygOImv/P8wdzmIR+NTbEjsnD0MCuT9kWv21oaJ7VnNrP4 mp6jygdmIbYxQ/MqXUdlqS3UoJHCvNmLKnKOtH+uP/fIvk8Eq1M0iGFiPkvPsBM0jnN/sK 3mNwfbwww5eP8L7H4jpWnMyXQvGec+80Ej+zOhaUwbpnmr9wdzLYLhnjH44Tfw== 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: 4.30 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: CE2B68379 X-Spam-Score: 4.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: VC94zCHE98W3 David Bremner writes: > > Although you have one too many sets of (), there is still a bug here. > > $ notmuch config set squery.D '(macro (dossier) (tag (regex ,dossier))' > > also doesn't work. Apparently both for regex and wildcard expansion I > did not do macro parameter expansion. In the regex case the regex > matching for tags actually happens at query construction time, so that's > why it ends up as an empty query (presumably none of your tags starts > with ,dossier). > > Anyway, I think I know how to fix this, it will mean that in the corner > case of a regex starting with a comma, we'll have to use (regex ",foo"). This bug should be fixed in master as of 6a9ae990990848ec99107f2e2e6b6ae12dcd33df