From 9f29c085eb20f65bc494520e42c7aac5d5f782c8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 8 Oct 2019 15:50:05 +0200 Subject: Add new scripts Signed-off-by: Florian Pritz --- gpg-diff.sh | 3 +++ view-mail | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100755 gpg-diff.sh create mode 100755 view-mail diff --git a/gpg-diff.sh b/gpg-diff.sh new file mode 100755 index 0000000..7045e46 --- /dev/null +++ b/gpg-diff.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +vimdiff <(gpg -d "$1") <(gpg -d "$2") diff --git a/view-mail b/view-mail new file mode 100755 index 0000000..4184a42 --- /dev/null +++ b/view-mail @@ -0,0 +1,8 @@ +#!/bin/bash + +TMPDIR="$(mktemp -d "/tmp/${0##*/}.XXXXXX")" +trap "rm -rf '${TMPDIR}'" EXIT TERM + +mkdir "$TMPDIR/"{cur,new} +cp "$1" "$TMPDIR/cur" +termite -e "mutt -R -f '$TMPDIR'" -- cgit v1.2.3-24-g4f1b