summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2011-02-23 09:57:29 +0100
committerThorsten Behrens <tbehrens@novell.com>2011-02-23 09:57:29 +0100
commit42795c499072b264c3f2146c40241267e50b9c84 (patch)
tree037606f5d5f2ab2235f401dd31ad4d5f5fbab931 /bin
parentb050ea959a4bbcc10b14b2df72fc6d85e130eb69 (diff)
Made tinderbox bcc owner on error mails
Every error spam now gets Bcc-ed to the owner. This does not apply to the x-tinder zipped log file mails.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/tinbuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/tinbuild b/bin/tinbuild
index 69b9b58fe99e..632806966e42 100755
--- a/bin/tinbuild
+++ b/bin/tinbuild
@@ -47,7 +47,9 @@ sendMailMsg ()
TO="$1"
SUBJECT="$2"
HEADERS="$3"
- LOG="$4"
+ BCC="$4"
+ LOG="$5"
+ echo $BCC
perl -e "
use MIME::Lite;
use Net::SMTP;
@@ -90,6 +92,7 @@ die \"Cannot connect to SMTP server!\" unless defined \$SMTP;
\$SMTP->mail('$OWNER');
\$SMTP->to('$TO');
+\$SMTP->bcc('$BCC') if ('$BCC' ne '');
\$SMTP->data();
\$SMTP->datasend( \$msg->as_string() );
\$SMTP->dataend();
@@ -132,7 +135,7 @@ reportError ()
TINDER1="`echo 'Full log available at http://tinderbox.go-oo.org/MASTER/status.html'`"
TINDER2="`echo \"Box name: $TINDERNAME\"`"
fi
- cat <<EOF | sendMailMsg "$to_mail" "Tinderbox failure, $message"
+ cat <<EOF | sendMailMsg "$to_mail" "Tinderbox failure, $message" "" "$OWNER"
Hi folks,
One of you broke the build of LibreOffice master with your commit :-(
@@ -205,7 +208,7 @@ tinderbox: END
XTINDER=",'X-Tinder:'=>'gzookie'"
fi
- echo "$MESSAGE" | sendMailMsg "tinderbox@gimli.documentfoundation.org" "tinderbox gzipped logfile" "$XTINDER" "$GZLOG"
+ echo "$MESSAGE" | sendMailMsg "tinderbox@gimli.documentfoundation.org" "tinderbox gzipped logfile" "$XTINDER" "" "$GZLOG"
}
## code