summaryrefslogtreecommitdiffstats
path: root/compose-mail-from-stdin
blob: 59d97a0c54b78721eee96a78cec7dc2711ffef81 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

#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