aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-07 19:39:32 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-07 21:31:47 +1200
commitbda650a7e5e72a9205112884cd7ba18198dff8f9 (patch)
tree0f6e874ad2141dbb648b83a8eeb08c6a94addc6a /bin
parentInclude .gvimrc patterns for vim filetype (diff)
downloaddotfiles-bda650a7e5e72a9205112884cd7ba18198dff8f9.tar.gz
dotfiles-bda650a7e5e72a9205112884cd7ba18198dff8f9.zip
Replace mail_mutt.vim with mim(1df)
Way better, and more generally useful.
Diffstat (limited to 'bin')
-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