summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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