summaryrefslogtreecommitdiff
path: root/localnsrequest
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-08-29 11:06:50 +0000
committerJonas Smedegaard <dr@jones.dk>2002-08-29 11:06:50 +0000
commit8ff8460d7b7fca3d3b301cea845cb53764614de7 (patch)
treeab760d8df73a3555f399aec45ecdbd548aef52b2 /localnsrequest
parentbed12e9a6ffb01270ade5146a744e6b6a0a3a496 (diff)
localnsrequest: Use account as mailuser for TotalRegistrations.
Diffstat (limited to 'localnsrequest')
-rwxr-xr-xlocalnsrequest7
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