diff options
author | Florian Pritz <bluewind@xinu.at> | 2019-10-08 15:50:05 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2019-10-08 15:50:05 +0200 |
commit | 9f29c085eb20f65bc494520e42c7aac5d5f782c8 (patch) | |
tree | 3bb04d05a612998dc9a1a1662fdfa569b688d48a /view-mail | |
parent | a3892f42e640aac9abf571f789fbb344f7c49628 (diff) | |
download | bin-9f29c085eb20f65bc494520e42c7aac5d5f782c8.tar.gz bin-9f29c085eb20f65bc494520e42c7aac5d5f782c8.tar.xz |
Add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'view-mail')
-rwxr-xr-x | view-mail | 8 |
1 files changed, 8 insertions, 0 deletions
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'" |