aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-10-27 04:23:22 +0800
committerjoe <joe@FreeBSD.org>2001-10-27 04:23:22 +0800
commit2a77e21587908cbd48ff56176b4a104a84f387e9 (patch)
tree4379e3396d744dfa89b02da8cc26e626227c9ba3 /CVSROOT
parent80fd2aceb8ad5c92bcf31de19874bf7dea1fd34d (diff)
downloadfreebsd-ports-gnome-2a77e21587908cbd48ff56176b4a104a84f387e9.tar.gz
freebsd-ports-gnome-2a77e21587908cbd48ff56176b4a104a84f387e9.tar.zst
freebsd-ports-gnome-2a77e21587908cbd48ff56176b4a104a84f387e9.zip
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')
-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 a5b0f9c97b7a..9159addd2bea 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;