Annotation of researchv10dc/cmd/upas/config/112clients/smtproute, revision 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: # first try smtp from this machine
        !             8: cat > /tmp/ur$$
        !             9: smtp $sender $system $* < /tmp/ur$$ && rm -f /tmp/ur$$ && exit 0
        !            10: 
        !            11: # get gateway system
        !            12: gateway=`cat /usr/lib/upas/gateway`
        !            13: case $gateway in
        !            14: "") gateway=research ;;
        !            15: esac
        !            16: 
        !            17: # then hand it off to the gateway
        !            18: temp=
        !            19: for i in $*; do temp="$temp smtp!$system!$i"; done
        !            20: uux - -a "$sender" "$gateway!rmail" "($temp)" </tmp/ur$$
        !            21: rv=$?
        !            22: rm -f /tmp/ur$$
        !            23: exit $rv

unix.superglobalmegacorp.com

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