shithub: 9scripts

Download patch

ref: 35b905084c626d16b3c8522122dd9a8c1c5b218e
parent: efb5a77be2a75caf6f67ffe69a30f82b05cb9fc9
author: glenda <glenda@9front.local>
date: Fri Jan 1 17:07:35 EST 2021

mail update thanks sirjofri

--- a/lib/remotemail
+++ b/lib/remotemail
@@ -1,11 +1,10 @@
 #!/bin/rc
 shift
-sender=fulton@fulton.software
+sender=$1
 shift
-addr=tcp!fulton.software!587
+addr=$1
 shift
-echo here
-fd=‘{/bin/upas/aliasmail -f $sender}
+fd=`{/bin/upas/aliasmail -f $sender}
 switch($fd){
 case *.*
 	;
@@ -12,5 +11,7 @@
 case *
 	fd=fulton.software
 }
-echo $*
-exec /bin/upas/smtp -u fulton@fulton.software -a -h $fd $addr $sender $*
+
+if($sysname cirno) exec /bin/upas/smtp -h $fd $addr $sender $*
+
+if not exec rcpu -h 'fulton.software' -c /bin/upas/smtp -h $fd $addr $sender $*