+
+ if [ -n "$OVERBASE" ] ; then
+ sedargs="-e s,@DATE@,${DATE},g"
+ BASE=$(echo ${OVERBASE} | sed $sedargs)
+ else
+ sedargs="-e s,@DATE@,${DATE},g -e s,@FCDISTRO@,${FCDISTRO},g -e s,@PLDISTRO@,${PLDISTRO},g -e s,@PERSONALITY@,${PERSONALITY},g"
+ BASE=$(echo ${BASE} | sed $sedargs)
+ fi
+
+ ### elaborate mail subject
+ if [ -n "$DO_BUILD" -a -n "$DO_TEST" ] ; then
+ MAIL_SUBJECT="full"
+ elif [ -n "$DO_BUILD" ] ; then
+ MAIL_SUBJECT="pkg-only"
+ elif [ -n "$DO_TEST" ] ; then
+ MAIL_SUBJECT="test-only"
+ fi
+ if [ -n "$OVERBASE" ] ; then
+ MAIL_SUBJECT="${MAIL_SUBJECT} rerun"
+ else
+ MAIL_SUBJECT="${MAIL_SUBJECT} fresh"
+ fi
+ short_hostname=$(hostname | cut -d. -f1)
+ MAIL_SUBJECT="on ${short_hostname} - ${MAIL_SUBJECT}"
+
+ ### compute WEBHOST from TESTBUILDURL
+ # this is to avoid having to change the builds configs everywhere
+ # simplistic way to extract hostname from a URL
+ WEBHOST=$(echo "$TESTBUILDURL" | cut -d/ -f 3)
+