summaryrefslogtreecommitdiffstats
path: root/CVSROOT/log_accum.pl
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-10-26 20:23:22 +0000
committerjoe <joe@FreeBSD.org>2001-10-26 20:23:22 +0000
commit2a77e21587908cbd48ff56176b4a104a84f387e9 (patch)
tree4379e3396d744dfa89b02da8cc26e626227c9ba3 /CVSROOT/log_accum.pl
parent80fd2aceb8ad5c92bcf31de19874bf7dea1fd34d (diff)
downloadFreeBSD-ports-2a77e21587908cbd48ff56176b4a104a84f387e9.zip
FreeBSD-ports-2a77e21587908cbd48ff56176b4a104a84f387e9.tar.gz
Add a 'To:' header at email generation time.
Sendmail automatically adds one but other MTA's, like postfix, don't. This should make for a more consistant email across different platforms.
Diffstat (limited to 'CVSROOT/log_accum.pl')
-rwxr-xr-xCVSROOT/log_accum.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl
index a5b0f9c..9159add 100755
--- a/CVSROOT/log_accum.pl
+++ b/CVSROOT/log_accum.pl
@@ -441,7 +441,9 @@ sub mail_notification {
# }
# print(MAIL "\n");
- my @email = ();
+ my $to = $cfg::MAILADDRS;
+
+ my @email = ("To: $to");
my $subject = 'Subject: cvs commit:';
my @subj = &read_logfile($SUBJ_FILE);
@@ -498,7 +500,7 @@ sub mail_notification {
}
# Send the email.
- open MAIL, "| $cfg::MAILCMD $cfg::MAILADDRS"
+ open MAIL, "| $cfg::MAILCMD $to"
or die "Please check $cfg::MAILCMD.";
print MAIL map { "$_\n" } @email;
close MAIL;
OpenPOWER on IntegriCloud