c92592e733745a06c02be1b7ceba1e857b2daeeb brianlee Tue Apr 30 09:53:29 2019 -0700 Resetting the Code Summaries to send to BrianL instead of AnnZ in sendLogEmail.pl diff --git src/utils/qa/weeklybld/sendLogEmail.pl src/utils/qa/weeklybld/sendLogEmail.pl index c293428..df73a03 100755 --- src/utils/qa/weeklybld/sendLogEmail.pl +++ src/utils/qa/weeklybld/sendLogEmail.pl @@ -1,64 +1,62 @@ #!/usr/bin/env perl use strict; use warnings; my $argc = scalar(@ARGV); if ($argc != 2) { printf STDERR "usage: sendLogEmail.pl \$LASTNN \$BRANCHNN\n"; exit 255; } my $lastNN = shift; my $branchNN = shift; -# my $buildMeisterEmail = $ENV{'BUILDMEISTEREMAIL'} . ',ann@soe.ucsc.edu,brianlee@soe.ucsc.edu'; -my $buildMeisterEmail = $ENV{'BUILDMEISTEREMAIL'} . ',azweig@ucsc.edu,brianlee@soe.ucsc.edu'; -# my $returnEmail = ' brianlee@soe.ucsc.edu'; -my $returnEmail = ' azweig@ucsc.edu'; +my $buildMeisterEmail = $ENV{'BUILDMEISTEREMAIL'} . ',ann@soe.ucsc.edu,brianlee@soe.ucsc.edu'; +my $returnEmail = ' brianlee@soe.ucsc.edu'; my @victims; my %victimEmail; open (FH, "git log v${lastNN}_base..v${branchNN}_base --name-status | grep Author | sort | uniq|") or die "can not git log v${lastNN}_base..v${branchNN}_base --name-status"; while (my $line = ) { chomp $line; if ($line =~ m/^Author:/) { $line =~ s/Author: //; my @b = split('\s+', $line); my $sizeB = scalar(@b); my $email = $b[$sizeB-1]; $email =~ s/) { chomp $line; $logData .= $line; } close (FH); if (length($logData) > 1) { my $toAddr = $victimEmail{$victim}; printf STDERR "# sending email to $toAddr\n"; open (SH, "| /usr/sbin/sendmail -t -oi") or die "can not run sendmail"; printf SH "To: %s\n", $toAddr; - printf SH "From: \"Ann Zweig\" \n"; + printf SH "From: \"Brian Lee\" \n"; printf SH "Subject: Code summaries are due for %s\n", $victim; - printf SH "Cc: \"Ann Zweig\" \n"; + printf SH "Cc: \"Brian Lee\" \n"; printf SH "\n"; print SH `./summaryEmail.sh $victim`; } }