aboutsummaryrefslogtreecommitdiff
path: root/bin/wmail
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-08-22 15:38:10 +0000
committerrsc <devnull@localhost>2004-08-22 15:38:10 +0000
commitf69a6ff541fc1aba9cc5c968524306a52e8842f0 (patch)
treedf20b040bdd6979d6c1812eed10ab4527a954b3a /bin/wmail
parent18b0811745677e0d63e3e2fa74a6b501992ef370 (diff)
downloadplan9port-f69a6ff541fc1aba9cc5c968524306a52e8842f0.tar.gz
plan9port-f69a6ff541fc1aba9cc5c968524306a52e8842f0.tar.bz2
plan9port-f69a6ff541fc1aba9cc5c968524306a52e8842f0.zip
call wmail to send mail.
Diffstat (limited to 'bin/wmail')
-rwxr-xr-xbin/wmail11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/wmail b/bin/wmail
new file mode 100755
index 00000000..27addc40
--- /dev/null
+++ b/bin/wmail
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "x-$MAILER" in
+x-|x-browser)
+ # start mail in a new window
+ web 'mailto://'$1
+ ;;
+*)
+ 9term $MAILER
+ ;;
+esac