summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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