summaryrefslogtreecommitdiffstats
path: root/compose-mail-from-stdin
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-07-24 10:45:29 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-07-24 10:45:29 +0200
commit719cfbd01026cf623b5cada51924d5969f2a743b (patch)
treea12bda5973b22b659ac2107078ac814cfaa92a51 /compose-mail-from-stdin
parent5c1b31f65daabed266f85cbf4ad912c14e7d1643 (diff)
downloadbin-719cfbd01026cf623b5cada51924d5969f2a743b.tar.gz
bin-719cfbd01026cf623b5cada51924d5969f2a743b.tar.xz
compose-mail-from-stdin: Use mutt
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'compose-mail-from-stdin')
-rwxr-xr-xcompose-mail-from-stdin9
1 files changed, 8 insertions, 1 deletions
diff --git a/compose-mail-from-stdin b/compose-mail-from-stdin
index a8637f6..59d97a0 100755
--- a/compose-mail-from-stdin
+++ b/compose-mail-from-stdin
@@ -1,4 +1,11 @@
#!/bin/bash
-cat | claws-mail --compose-from-file - &
+#cat | claws-mail --compose-from-file - &
+TMPFILE=$(mktemp)
+cat > "$TMPFILE"
+(
+#trap "rm $TMPFILE" EXIT INT TERM
+termite -e "mutt -e 'set autoedit=yes' -E -H $TMPFILE"
+rm "$TMPFILE"
+) &
disown