nixpkgs-ml-tools

nixpkgs mailing list tools
git clone git://jb55.com/nixpkgs-ml-tools
Log | Files | Refs | README | LICENSE

commit 6c00bfb1ace953764711cbdb098cb793668d2dd6
parent 3d62d22c3c33d885d62418344acba029fe41f541
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 30 Mar 2021 05:25:11 -0700

notmuch-am: include --add-link option by default

In your nixpkgs .git/config:

[b4]
	linkmask = https://lists.sr.ht/~andir/nixpkgs-dev/%%3C%s%%3E

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mnotmuch-am | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/notmuch-am b/notmuch-am @@ -1,5 +1,7 @@ #!/usr/bin/env bash +B4AM_ARGS=${B4AM_ARGS:-"--add-link"} + usage () { printf %s "\ Usage: notmuch-am <thread-id> @@ -23,7 +25,7 @@ main () { mbox=$(mktemp) notmuch show --format=mbox "$1" > "$mbox" msgid=$(grep -i ^message-id "$mbox" | cut -d" " -f2 | head -n1) - b4 am "$msgid" -m "$mbox" + b4 am "$B4AM_ARGS" "$msgid" -m "$mbox" rm -f "$mbox" }