1subject="$1"
2summary="$2"
3diffs="$3"
4
5MAILFILE="/usr/local/build/valgrind/results/$(date +%d-%b-%Y.%R)"
6
7echo "Subject: $subject" > $MAILFILE
8echo "To: valgrind-testresults@lists.sourceforge.net" >> $MAILFILE
9echo "Bcc: valgrind@wildebeest.org" >> $MAILFILE
10echo >> $MAILFILE
11
12cat "$summary"  >> $MAILFILE
13echo "  " >> $MAILFILE
14cat "$diffs"  >> $MAILFILE
15
16/usr/sbin/sendmail -t -i -fmark@builder.wildebeest.org < $MAILFILE
17