diff options
Diffstat (limited to 'localnsrequest')
-rwxr-xr-x | localnsrequest | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/localnsrequest b/localnsrequest index 57723e8..6a0309d 100755 --- a/localnsrequest +++ b/localnsrequest @@ -3,7 +3,7 @@ # /usr/local/bin/localnsrequest # Copyright 2001, 2002 Jonas Smedegaard <dr@jones.dk> # -# $Id: localnsrequest,v 1.3 2002-08-09 01:34:40 jonas Exp $ +# $Id: localnsrequest,v 1.4 2002-08-29 11:06:50 jonas Exp $ # # Send requests regarding domain registrations to registrars # @@ -14,6 +14,7 @@ # * Clean up the mess of handles being both e.g. spiff and radar # +set -e prg=$(basename $0) copyright="(C) 2002 Jonas Smedegaard <dr@jones.dk>" @@ -78,7 +79,7 @@ for DOMAIN in $@; do ;; *.com|*.org|*.net) dir='/etc/local-COMMON/TotalRegistrations' - TO="register@totalregistrations.com" +# TO="register@totalregistrations.com" file=email-$handle case $action in reg) @@ -111,6 +112,8 @@ for DOMAIN in $@; do echo "$usage" exit 1 fi + account=`cat $dir/$file | grep '^11a\.' | sed -e 's/.*:\W\([[:alnum:]]\+\)/\1/'` + TO=$account@totalregistrations.com sed -e "s/{DOMAIN}/$DOMAIN/g" -e "s/{ACTION}/$ACTION/g" -e "s/{PASSWD}/$PASSWD/g" $dir/$file \ | mail -s "$action $DOMAIN ($handle)" -a "Content-Type: TEXT/PLAIN; charset=ISO-8859-1" -e $TO |