From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MEw4HqdqGWEzuQAAgWs5BA (envelope-from ) for ; Sun, 15 Aug 2021 21:27:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YMV/GadqGWHfewAAB5/wlQ (envelope-from ) for ; Sun, 15 Aug 2021 19:27:35 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 EA4F12FDF6 for ; Sun, 15 Aug 2021 21:27:34 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DAB0C1FC03; Sun, 15 Aug 2021 15:27:30 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 205911FB74 for ; Sun, 15 Aug 2021 15:27:29 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 5567E5FD5C; Sun, 15 Aug 2021 15:27:28 -0400 (EDT) Received: (nullmailer pid 1553254 invoked by uid 1000); Sun, 15 Aug 2021 19:27:24 -0000 From: David Bremner To: Keith Amidon , notmuch@notmuchmail.org Subject: Re: Multiple header sources for an index.header query prefix? In-Reply-To: <4607c340-60f7-cfa4-2a97-3d13cb6bdb59@picnicpark.org> References: <87a6lww4qo.fsf@tethera.net> <4607c340-60f7-cfa4-2a97-3d13cb6bdb59@picnicpark.org> Date: Sun, 15 Aug 2021 12:27:24 -0700 Message-ID: <87czqe8q5f.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: GDAXJUBXRDM7FTI3KWRHXDPOIVLPD4TB X-Message-ID-Hash: GDAXJUBXRDM7FTI3KWRHXDPOIVLPD4TB 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629055655; 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-unsubscribe:list-subscribe:list-post; bh=Yxt4Qi4kon4n8ZS3MGHP0Q85SNUq2E2Gsny1TVJZAoE=; b=ZQKy7hHFxgNCCk1U7gvToBlSdxiyO+pNNp0H1uQFJ3us3wu13DDqI0knFijXK/hW53Rbz2 vWqV6AU/IbST0uSNTMi6cZ08Q7BME2qZxLscWlT9Kr5RPf7nKMN613qN7l/FlCGmK/3sGf JWYUF3vIFtCsGWtqT6geaaSkZjjiQZNV+wCl7W59poHWwEqJzfO8XN0DuUyfoyjQrjMkjv JUdcM1kOnPwgLKUy/Jv7a8tcmAVVnCq+3PDrzhCWpscpHnf+YcxGA49Zbgu4BWQGwo3WBJ vZgW4jag11SbRsKwS2p14IJGdSpnXaHX4WcHslJymC9z3TPQnUKEMw5HDv9vUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629055655; a=rsa-sha256; cv=none; b=p5rsUMXKiGDmA+I30yoCd6ovmmOukQaVJj4Not8OcowaGCQwhUtBW8ORRYao6sssIDcJQ4 107maak1qdOfFFdHhVEUV0ePWJgjkQsGTlx+z5I9GR18L0m9e1Io5EqQd+luPaeVMH5uFY 6FT5P/3Ls+boZKH6jYn6E64hIzON4tYf/xPMOWE/fsUqHr0dvSPhEF8m7xYgs3zMCOZrb6 6Fnqzvmsoje5+DPmd8Mi1r5pLoe2NnCdk4harCdUiH96WFHTmz0fWfkZDekrRXKOwfiPhD +UyqZB4jcl6/E0Q4Jsu/+NzHg5iTayCpzmeRLEoVbO4frYiX1UygqLIBnIJ2Uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.47 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: EA4F12FDF6 X-Spam-Score: 0.47 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZV+c6u1vo2Gh Keith Amidon writes: >>> I started thinking about how I would add this feature and was thinking >>> it might be better to support in the configuration by using semi-colon >>> separated values like some of the other config options. For example: >>> >>> [index] >>> header.Spam=X-Spam;X-Spam-Result > Thanks for the encouragement and suggestions. The time it has taken me > to respond to this thread is a fairly accurate indication of the amount > of time I have to work on this right now, but it is something that I'd > definitely would find useful so I'll plug away on it when I can make > time and update the list when I hopefully get something working. > I should repeat my advertising for the (in-progress) s-expression query parser [1], which would allow defining macros to group various user defined headers. So assuming headers XSpam and XSpamResult are defined, $ notmuch config set squery.Spam '(macro (term) (or (XSpam term) (XSpamResult term)))' $ notmuch search --query=sexp '(Spam "foo bar baz")' If that seems workable for you, you could just wait ;). d [1] id:20210812170728.1348333-2-david@tethera.net