aboutsummaryrefslogtreecommitdiff
path: root/mail/lib/remotemail
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-12 19:45:56 +0000
committerrsc <devnull@localhost>2006-02-12 19:45:56 +0000
commit4db31855e7fde9a087fb59e761743420aaa3743b (patch)
tree61b21e62b9a5b50170897a26a96e2c2e2b8a5e29 /mail/lib/remotemail
parenteadb18a3357b9b735b2f7da478854a39fb0c73c6 (diff)
downloadplan9port-4db31855e7fde9a087fb59e761743420aaa3743b.tar.gz
plan9port-4db31855e7fde9a087fb59e761743420aaa3743b.tar.bz2
plan9port-4db31855e7fde9a087fb59e761743420aaa3743b.zip
initial tree
Diffstat (limited to 'mail/lib/remotemail')
-rwxr-xr-xmail/lib/remotemail14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/lib/remotemail b/mail/lib/remotemail
new file mode 100755
index 00000000..028642e9
--- /dev/null
+++ b/mail/lib/remotemail
@@ -0,0 +1,14 @@
+#!/usr/local/plan9/bin/rc
+shift
+sender=$1
+shift
+addr=$1
+shift
+fd=`{upas/aliasmail -f $sender}
+switch($fd){
+case *.*
+ ;
+case *
+ fd=YOURDOMAIN.DOM
+}
+exec upas/smtp -h $fd $addr $sender $*