#!/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 "$5" ]]
 then
  D="$4"
else
  D="$4 / $5"
fi
#
SUBJECT="UTT-Notify - ${11} - $7: $1 / $2 / $3 / $D: $8"
#
echo "UTT-Notify - ${11} - $7: $1 / $2 / $3 / $D
${ULSURL:-${ULSHTTPMODE:-http}://${ULSHTTPNAME:-uls}:${ULSPORT:-11975}/}index.u2w?uttid=${10}
$9" | mail -s "$SUBJECT" $6
