From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iDTNEfFcM2Th6QAASxT56A (envelope-from ) for ; Mon, 10 Apr 2023 02:48:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AObBEfFcM2QLfwEA9RJhRA (envelope-from ) for ; Mon, 10 Apr 2023 02:48:49 +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 79B6C16460 for ; Mon, 10 Apr 2023 02:48:48 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id AC1575F342; Mon, 10 Apr 2023 00:48:45 +0000 (UTC) Received: from smtp.bonedaddy.net (smtp.bonedaddy.net [45.33.94.42]) by mail.notmuchmail.org (Postfix) with ESMTPS id D0A8F5E017 for ; Mon, 10 Apr 2023 00:48:42 +0000 (UTC) Received: by smtp.bonedaddy.net (Postfix, from userid 10001) id 006AC309EA3; Sun, 9 Apr 2023 20:46:24 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bonedaddy.net; s=mail; t=1681087585; bh=1x01p5zcZqeVN2tSo/ZyaerOsqVeoDS6rgQVklWYdsI=; h=Subject:From:Reply-To:To:In-Reply-To:References:Date; b=QM44WHI8/c/D6YBTBNVTpCryf5K1e78p7xdzwIR9d2BAF/0432z44mk4ldJAANkqa birVoGKzt6zuKMRh7LiaKyUPAimLzoqY7Jr8b3FNn94wzv4vQkYjWuaevPQoSYf2qn oq7NLRsQo9hdXVf67QY7tj7mho0BEzaBS351FRMOdPEX7+g3BjhBhhc6oz26f8GVjf Rz8/tpZWUVbqero26zxQ4BgsAeezwBIAA2wQsw1LLIzBe8v7/rGdeg5phyoDz7bJjs /4hEOipX8e4y+6O3dhNfHdyZxiy2L5qT99UHf0cW/a6wxFTKF2187jlV5rwXvoeu4K 8vG9gSb6JyLOQ== Message-ID: <8a170f97198f00d226847ef1e3a3adbcad39fff1.camel@bonedaddy.net> Subject: Re: [PATCH] notmuch-mutt: replace extra command with notmuch-native thread search feature From: Paul Wise To: notmuch@notmuchmail.org In-Reply-To: <87wn2lf3k8.fsf@minkowski.home> References: <20230407005452.2904978-1-pabs3@bonedaddy.net> <87355aob0e.fsf@minkowski.home> <28f564aaeee5bfe4dfd007850920eecbb19daba0.camel@bonedaddy.net> <87wn2lf3k8.fsf@minkowski.home> Date: Mon, 10 Apr 2023 08:48:16 +0800 MIME-Version: 1.0 User-Agent: Evolution 3.46.4-1 Message-ID-Hash: TTEPAPRFVWL3W33R4H56QFRTL5LEMS77 X-Message-ID-Hash: TTEPAPRFVWL3W33R4H56QFRTL5LEMS77 X-MailFrom: pabs3@bonedaddy.net X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 X-Mailman-Version: 3.3.3 Precedence: list Reply-To: notmuch@notmuchmail.org, Paul Wise List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============5256527902952499701==" X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681087729; a=rsa-sha256; cv=none; b=aOOQX84RaQBEMc0dbpkT0Fw7ypKQJHCOvJBnbBr0THGd/CoOPEBQCO0OYXRnQFGNKUhW8b KuR9dkDWyq+jiZAd8SD98WbR8Tf2oXvQFJg5RzFB2WoSxNsDhCdxfzII/gErHn3qTevO87 Z9Syey4FT7KZh7oGmVRKtco+M6jL75e3BwxqcsmTlsE4CHEMBIITl2n8x0LpOYBEqbJ621 hMOWGMGLxcTbATi5l30vYjzBhsPRdqq0QmoLt1ls7RLPQWdnLzsgVhTwGnO75QDQ8O/3wq dp+W2W7NBOCA+aBwVcrQilKtWX/Z/VIYSnZQXxRkTvGHqpdC1+bXCQqHOtp6LQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=bonedaddy.net header.s=mail header.b=QM44WHI8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=bonedaddy.net (policy=quarantine); 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681087729; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-owner:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=m72GN8T74RHRrpj2LfV22+JCUN+NyTNCu52MxTIG/uE=; b=s19k3rrJrmG3Mr/wHoIBtFohsE7f7UePzCuJwcxaRFbBNla6GoVPRU3r97j2g0uSSNqfih E6pipoMaCm0S7MlvUGlpA42kP2/sba3NDiOiBrTOQFCXebYeMLcGvGtqouFjbRtZgHHqeV Fm80JnuqO7Set+3lqauPXVZXF5eb8dUXJWjAnxlbJdt5D28eKL1R3Wcv1xgCCo9/busEHa chizfM36xPukWEU9RSTY1zKz3+kCnOHVbbvd12Up1stbF5jcqn9w5ko0qPtutIX2O1pcPv MAv1xngBaPAE8wRAI+qj32DG2T6D9RwznQX48RThKKm34x2FfacL0Z755kC7jA== X-Migadu-Spam: Yes X-Spam: Yes X-Spam-Score: 6.00 X-Migadu-Spam-Score: 6.00 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=bonedaddy.net header.s=mail header.b=QM44WHI8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=bonedaddy.net (policy=quarantine); 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: 79B6C16460 X-TUID: nj0LVAjpa1QR --===============5256527902952499701== Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-jVKD0m9VZvNSfmuBGrY7" --=-jVKD0m9VZvNSfmuBGrY7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2023-04-09 at 13:00 -0300, David Bremner wrote: > You might be interested in the s-expression query parser. Part of the > goal is to be less dwim/quirky than the native Xapian query parser, and > to make it easier / safer to construct notmuch queries via programs. That does seem saner to manually construct queries in, but it would still be better to have a query construction library, otherwise programs are going to get it wrong all the time, even within notmuch. > It doesn't do the message-id munging you mention (yet?), This is a big part of the query construction headache, re-implementing the space stripping is easy, the user part removal is harder and I can't find any docs on what else is required here. PS: I don't intend to work on switching notmuch-mutt to sexp. --=20 bye, pabs https://bonedaddy.net/pabs3/ --=-jVKD0m9VZvNSfmuBGrY7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEYQsotVz8/kXqG1Y7MRa6Xp/6aaMFAmQzXMgACgkQMRa6Xp/6 aaMykBAAn0XO3qM3IlUSWZceTcnIVPrRQyI5uDYYMq/FRU8eoUN8gLkyiyF1EBYR koUMERNWnBoxjBjUtJeB5c0/VfkAH5IeEN0W5qAa9wUkOUy7kRbvD4UTk2tjQbPC vbBugcRh9jA4JjVbAwdik7EOA4HB9zObeMXX7gN73Xg0PMxpvzN2wkXkalnw0SD6 fI4fS5WkW31G4lamzftD01nWfQAbTzUWapbH78cfAaBpjBL5mQgcW+xPkUJgAlql Ljeu4kK1Rez/Cj8p54UFyd0Zmhx3L1Y8VTz79NUsq6GKy3I7qI8QTq9Hs+GfJze+ cGJYEKOsjv6kqHkeRRFrkd+aezJ42ps/jvShegezC5HP+wsLetFhKUzZPVdzBzYQ 7BZjQwsih7g8Ya9dFBXRbLNoqqm+ao8TvhylsuEuNYKTGNUHBRiSiQk1TQc3rAEV IGzEcvORUeZWZ6J4PzbNKzFkHZ+BqxQn/LAgqjuxEkN8lCSP0imf/nAyLJGaXbAQ /jPs8Dc2gEW9l1MImzY8kXIRs8m1iy8V6rRVpp0ccLyE5JBn5N3C5OMeK5fVnHpS /uB+eM7A7xs18EPelJ1mpOIG9qF8InUZ3JwCY/JC6yUpzsOD8SBleQAyanNpWUkT dPdvqAyeNdVCKnScNyr3lt9iEUXGR6EMc+0j/RNSk/spEKlDk+Y= =jrvn -----END PGP SIGNATURE----- --=-jVKD0m9VZvNSfmuBGrY7-- --===============5256527902952499701== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============5256527902952499701==--