tuned;
authorwenzelm
Tue Jul 09 11:55:46 2002 +0200 (2002-07-09)
changeset 1332170a5d5fc081a
parent 13320 2c6ee189ae63
child 13322 3323ecc0b97c
tuned;
Admin/pmail
     1.1 --- a/Admin/pmail	Tue Jul 09 11:46:36 2002 +0200
     1.2 +++ b/Admin/pmail	Tue Jul 09 11:55:46 2002 +0200
     1.3 @@ -31,19 +31,19 @@
     1.4  [ "$1" = "-?" ] && usage
     1.5  [ "$#" != "3" ] && usage
     1.6  
     1.7 -SUBJECT=$1
     1.8 -TO=$2
     1.9 -BODY=$3
    1.10 +SUBJECT="$1"
    1.11 +TO="$2"
    1.12 +BODY="$3"
    1.13  
    1.14 -[ -r $BODY ] || fail "could not read $BODY"
    1.15 +[ -r "$BODY" ] || fail "could not read $BODY"
    1.16  
    1.17  case `uname` in
    1.18 -    Linux*)
    1.19 -    mail -s "$SUBJECT" $TO <$BODY
    1.20 +    linux*|Linux*)
    1.21 +    mail -s "$SUBJECT" "$TO" < "$BODY"
    1.22      ;;
    1.23  
    1.24      SunOS*)
    1.25 -    mail -t $TO <<EOF
    1.26 +    mail -t "$TO" <<EOF
    1.27  Subject: $SUBJECT
    1.28  
    1.29  `cat $BODY`