diff options
author | rsc <devnull@localhost> | 2004-08-22 15:38:10 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-08-22 15:38:10 +0000 |
commit | f69a6ff541fc1aba9cc5c968524306a52e8842f0 (patch) | |
tree | df20b040bdd6979d6c1812eed10ab4527a954b3a | |
parent | 18b0811745677e0d63e3e2fa74a6b501992ef370 (diff) | |
download | plan9port-f69a6ff541fc1aba9cc5c968524306a52e8842f0.tar.gz plan9port-f69a6ff541fc1aba9cc5c968524306a52e8842f0.tar.bz2 plan9port-f69a6ff541fc1aba9cc5c968524306a52e8842f0.zip |
call wmail to send mail.
-rwxr-xr-x | bin/wmail | 11 | ||||
-rw-r--r-- | plumb/basic | 3 |
2 files changed, 13 insertions, 1 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 diff --git a/plumb/basic b/plumb/basic index a20d083d..464b954c 100644 --- a/plumb/basic +++ b/plumb/basic @@ -49,7 +49,8 @@ plumb start wdoc2txt $file type is text data matches '[a-zA-Z0-9_+.\-]+@[a-zA-Z0-9_+.\-]*' plumb to sendmail -plumb start window rc -c '''echo % mail '''$0'; mail '$0 +plumb start wmail $0 +# plumb start window rc -c '''echo % mail '''$0'; mail '$0 # image files go to page type is text |