Annotation of researchv10dc/cmd/upas/config/1127suns/uucproute, revision 1.1.1.1

1.1       root        1: #!/bin/sh -p
                      2: PATH=/bin:/usr/bin:/usr/lib/upas; export PATH
                      3: sender=$1;shift
                      4: system=$1;shift
                      5: sys=`cat /etc/whoami`
                      6: 
                      7: # save the mail
                      8: cat > /tmp/ur$$
                      9: 
                     10: #
                     11: #  Try direct.  Queuing is only done by uucp.
                     12: #
                     13: uux - -a "$sender" "$system!rmail" "($*)" < /tmp/ur$$ && rm -f /tmp/ur$$ && exit 0
                     14: 
                     15: # get gateway system
                     16: gateway=`cat /usr/lib/upas/gateway`
                     17: case $gateway in
                     18: "") gateway=research ;;
                     19: esac
                     20: 
                     21: # let the gateway figure it out
                     22: temp=
                     23: for i in $*; do temp="$temp $system!$i"; done
                     24: tosmtp -u $sender dk!$gateway!smtp $temp < /tmp/ur$$ && rm -f /tmp/ur$$ && exit 0
                     25: uux - -a "$sender" "$gateway!rmail" "($temp)" </tmp/ur$$
                     26: rv=$?
                     27: rm -f /tmp/ur$$
                     28: exit $rv

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.