aboutsummaryrefslogtreecommitdiff
path: root/bin/mim.mi5
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mim.mi5')
-rwxr-xr-xbin/mim.mi512
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/mim.mi5 b/bin/mim.mi5
new file mode 100755
index 00000000..1c04e185
--- /dev/null
+++ b/bin/mim.mi5
@@ -0,0 +1,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