summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmailto-mutt6
1 files changed, 6 insertions, 0 deletions
diff --git a/mailto-mutt b/mailto-mutt
new file mode 100755
index 0000000..fd53434
--- /dev/null
+++ b/mailto-mutt
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+# support spaces after "mailto:" even if they are probably wrong
+mailto=$(printf "%s" "$1" | sed -r 's#^mailto:\s*#mailto:#')
+
+term-open mutt "$mailto"