commit f69a6ff541fc1aba9cc5c968524306a52e8842f0 parent 18b0811745677e0d63e3e2fa74a6b501992ef370 Author: rsc <devnull@localhost> Date: Sun, 22 Aug 2004 15:38:10 +0000 call wmail to send mail. Diffstat:
A | bin/wmail | | | 11 | +++++++++++ |
M | plumb/basic | | | 3 | ++- |
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/bin/wmail 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 @@ -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