#!/bin/bash
#
# send_utt_notify
#
# UTT Notification versenden
#
# Aufruf: send_utt_notify <verfahren> <server> <section> <teststep>
#                         <det> <E-Mailaddress> <level> <Kurztext>
#                         <Meldung> <uttid> <limitart>
######################################################################
#
export LANG=en_US.UTF-8
#
if [ -f /etc/ulsserver.conf ]
 then
  . /etc/ulsserver.conf
fi
if [[ -z "$ULSURL" ]]
 then
  ULSURL="${ULSHTTPMODE:-http}://${ULSHTTPNAME:-uls}:${ULSPORT:-11975}/"
fi
#
SUBJECT="UTT-Notify - ${11} - $7: $1 / $2 / $3 / $4${5+ / }$5: $8"
#
echo "UTT-Notify - ${11} - $7: $1 / $2 / $3 / $4${5+ / }$5
${ULSURL}index.u2w?uttid=${10}
$9" | mail -s "$SUBJECT" $6
