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 ms12 with LMTPS id kNxGM/9MtmGRKQAAsNZ9tg (envelope-from ) for ; Sun, 12 Dec 2021 19:26:55 +0000 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 CKMRL/9MtmEsPAAAB5/wlQ (envelope-from ) for ; Sun, 12 Dec 2021 19:26:55 +0000 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (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 39A1821FE0 for ; Sun, 12 Dec 2021 20:26:50 +0100 (CET) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 9765B3200A39; Sun, 12 Dec 2021 14:26:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 12 Dec 2021 14:26:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=ratLQxc6KKq9F9o7qXqdmmPZWNU vbStucdKuxeOfCAA=; b=elB5lGczQShEY4hkzVpaG11N9F+A40GbuPo//jtjxyp +i8l+Zp+/Eu7iTX8+UFJguuwgcUl+KFGG8VuZg7bY7WQCbpR9OpwiJpXcXf32ljN ZZfLRpcPgEh5vw3xY39ENnTpJr2RW3fCBIf1sogqFX8XxnIxoiFchZMvzx1y1YrG hwCM889b6V8wkW1u6bNhSbonTFzR2nOleVUP6pJWyC4J6aCY8bAkL8qioO65rE9L 1b1ZyAzKp7EzaWOm/VD13mrIH70VQMjH8I7Ewglpr14tF545hgYp0Ab7IpvFq0SI A+2XQ/WRdRj9+3YHacBXcuSmKeer6JZlurTBkxBScdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ratLQx c6KKq9F9o7qXqdmmPZWNUvbStucdKuxeOfCAA=; b=FXQkwRa40t5jy46K0O9UZu 8w19PR7Jmog/Q2wfpg4+DdsZoNS5YKEl1V+x4BA7nzzhv3wFNfbmKbNzbBkhlYyD xb8ZLfJ5PKE+G7+VQEKh3VyAEX3ndfqL4k5AzMhFSuE044CywWt0sEK5NO/k0EGp d+nGxSK0H3dOEugpPT1uvgeCYgyGHJxP77Ghc43+Jqv6evGWWTqPYRgDd0syXLJ9 c7jJHqc2fWZ4k4AKxuUOPlVG7X2q6O7vxb1wFH5cGK1BR3qp4wSmPNYX43f/a4+5 8iyAVkflwjLUkl0ZIH5BIcorUUZ/oWvqZW48fyIo+xpejfEuvS+eJEzy937Hi/8A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrkeeigdduvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdttd ertddtvdenucfhrhhomhepufgvrghnucghhhhithhtohhnuceoshhpfihhihhtthhonhes shhpfihhihhtthhonhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeeuffeuueelteehve evkeefhfekheegtdeigfduvddvfeejieegkeelteehvdelteenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsphifhhhithhtohhnsehsphifhh hithhtohhnrdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 12 Dec 2021 14:26:46 -0500 (EST) Received: by melete.silentflame.com (Postfix, from userid 1000) id 8A3E07E8EAA; Sun, 12 Dec 2021 12:26:45 -0700 (MST) Date: Sun, 12 Dec 2021 12:26:45 -0700 From: Sean Whitton To: sourcehut@relevant-information.com, piem@inbox.kyleam.com Subject: Re: [PATCH 1/1] Use notmuch-extract-patch if available Message-ID: References: <20211209204319.168897-1-sourcehut@relevant-information.com> <20211209204319.168897-2-sourcehut@relevant-information.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vOOHA3EszNkTV/bB" Content-Disposition: inline In-Reply-To: <20211209204319.168897-2-sourcehut@relevant-information.com> X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1639337215; h=from:from: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:dkim-signature; bh=ratLQxc6KKq9F9o7qXqdmmPZWNUvbStucdKuxeOfCAA=; b=O0pQ5nw3fY6K/Q9Xg944KnSWlJX5hh3y+qZNg6JUswpDflAtdSywWAmB3dO4InXvDd9cIY 1mQXnMFpXaGdVw1ZxbjEqXaoXZHUM0jC91OHFhTpYST+HvpIXsJ/sqKMfViBW4b+KXa7I2 oOaRrlwyQyBH7J/VKjsmEMS4kPd0t72560LRDp37CsmVwGMv4AJlcfG92YzMwQQlLUh0jC 7Y29Or/OPPDFgtk1MTN4nyL2rpyGf0RUI2y59NFrqes+V2vbLQ3kVhwu2U9N7fiMXALl5s XMPnznz7SUPaV2F24hRul/7+08I8bl4y3+Rn4mDZ+Esw3a+cCkJWPOJtcYaYEw== ARC-Seal: i=1; s=key1; d=kyleam.com; t=1639337215; a=rsa-sha256; cv=none; b=qa4O/FQyVHZUgUmdKt+olMRbbYIon4Xo+098nzgHKHbJeGgltX8H3uJmjZMTg1XSu88TgL mi8j8fYbK4nNNyjaYe52UMmMV+OKGGLxtr5R5AqPpxuc8nmzPNRT1w+/9djLMClekZjjsj LhMkuEKpXwWoZ0HjpPWKmQ69b3FOeQnjA+a4tzLJPheMMjA21ZKH9315sN2tFxC1HRuIo4 H5tbL2plkt8O7pCVVeL26N8VerGoZ1bmmLqO8R3uHtRmOLbr3XhXg18xoJcIC9GS3oSU2N yoSKHvgdAnR+AaDzthFdujrA1TuxSvPUfkAn7PU0ucs34AWxH3F0xE7mYYLjJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=spwhitton.name header.s=fm1 header.b=elB5lGcz; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=FXQkwRa4; dmarc=none; spf=pass (aspmx1.migadu.com: domain of spwhitton@spwhitton.name designates 64.147.123.20 as permitted sender) smtp.mailfrom=spwhitton@spwhitton.name X-Migadu-Spam-Score: -4.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=spwhitton.name header.s=fm1 header.b=elB5lGcz; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=FXQkwRa4; dmarc=none; spf=pass (aspmx1.migadu.com: domain of spwhitton@spwhitton.name designates 64.147.123.20 as permitted sender) smtp.mailfrom=spwhitton@spwhitton.name X-Migadu-Queue-Id: 39A1821FE0 X-Spam-Score: -4.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: HX9JJfI8wnIr --vOOHA3EszNkTV/bB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Thu, Dec 09, 2021 at 09:43:19PM +0100, Leo wrote: > From: Leo >=20 > notmuch-extract-patch is a command line tool from the elpa-mailscripts > package that extracts patches from a thread. It's a useful way to > extract the latest patch series from an email thread and filter out the > replies and reviews. > --- > piem-notmuch.el | 25 +++++++++++++++++++++---- > 1 file changed, 21 insertions(+), 4 deletions(-) >=20 > diff --git a/piem-notmuch.el b/piem-notmuch.el > index 8b2a353..05c03ab 100644 > --- a/piem-notmuch.el > +++ b/piem-notmuch.el > + (tid > + ;; If `notmuch-show' was called with a notmuch query rather > + ;; than a thread ID, as `org-notmuch-follow-link' in > + ;; org-notmuch.el does, then `notmuch-show-thread-id' might > + ;; be an arbitrary notmuch query instead of a thread ID. We > + ;; need to wrap such a query in thread:{} before passing it > + ;; to notmuch-extract-patch(1), or we might not get a whole > + ;; thread extracted (e.g. if the query is just id:foo) This text comment is lifted straight from mailscripts.el, so please be sure to add "(C) 2019 Sean Whitton