aboutsummaryrefslogtreecommitdiff
path: root/bin/mim.mi5
blob: 1c04e185c4579daf353d4caed82c127c9898ff2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Open up Mutt to a new message starting with input

<%
include(`include/mktd.m4')
%>

# Direct all input (stdin and files) into a tempfile
tf=$td/out
cat -- "${@:--}" > "$tf" || exit

# Run Mutt on the tempfile, showing it the TTY for its input
mutt -i "$tf" < /dev/tty