From nobody Sun Feb 7 04:56:46 2021 Authentication-Results: mail-b.sr.ht; dkim=none Received: from jb55.com (jb55.com [45.79.91.128]) by mail-b.sr.ht (Postfix) with ESMTPS id 9E4C811EFF6 for <~andir/nixpkgs-dev@lists.sr.ht>; Sun, 7 Feb 2021 04:56:45 +0000 (UTC) Received: from jb55.com (S010660e327dca171.vc.shawcable.net [24.84.152.187]) by jb55.com (OpenSMTPD) with ESMTPSA id 080330bc (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 7 Feb 2021 04:57:50 +0000 (UTC) From: William Casarin To: andi@srht.l.notmuch.email Cc: ~andir/nixpkgs-dev@lists.sr.ht, Xinglu Chen , Michael Weiss , Matthias Beyer Subject: Re: Mailing list and tooling for nixpkgs-dev In-Reply-To: <874kiosgiq.fsf@jb55.com> References: <20210207012730.lad2ibyi5odcpfye@wrt> <6C12E9C9-95B1-4186-B420-F16B41F88C2C@jb55.com> <874kiosgiq.fsf@jb55.com> Date: Sat, 06 Feb 2021 20:56:43 -0800 Message-ID: <87zh0gqxv8.fsf@jb55.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable William Casarin writes: > William Casarin writes: > >>> On Feb 6, 2021, at 17:28, andi@srht.l.notmuch.email wrote: >>>=20 >>> =EF=BB=BFWould be nice if b4 supported notmuch databases instead of pub= lic >>> inboxes. I've all my mail (lots and lots of public mailing lists) in >>> notmuch an my primary workflow is really driven by queries to the local >>> database. >> >> It=E2=80=99s really odd that b4 doesn=E2=80=99t support applying raw mbo= x over stdin. >> I might look into adding that, then you could use notmuch show >> =E2=80=94format=3Dmbox thread:id and pipe it to b4 am. > > looks like it does via the -m option. Here's a notmuch-am script that > does a b4 am on a notmuch thread: > > #!/usr/bin/env bash > set -eou pipefail > mbox=3D$(mktemp) > notmuch show --format=3Dmbox "$1" > "$mbox" > msgid=3D$(grep -i ^message-id "$mbox" | cut -d" " -f2 | head -n1) > b4 am "$msgid" -m "$mbox" > rm -f "$mbox" Here's a little fzf script that uses this: https://asciinema.org/a/KB25MsQfyq3WPPAwdewQ2LvYS That's enough fun for today :)