summaryrefslogtreecommitdiffstats
path: root/libexec/git-notify
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:06:11 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:06:11 (GMT)
commitbe45010336908b6b18ca74fecb62332999e4cea0 (patch)
treed359f4e79043975fb7a0f99953e7c170d6573bea /libexec/git-notify
parent9beb250cf9eed05ba1139b202bf2412b07978ef5 (diff)
downloadsite-be45010336908b6b18ca74fecb62332999e4cea0.tar.gz
git-notify: Use another From: address
Send emails from Git Repository <git@nagios-plugins.org>. We should turn this into a proper command line option.
Diffstat (limited to 'libexec/git-notify')
-rwxr-xr-xlibexec/git-notify7
1 files changed, 6 insertions, 1 deletions
diff --git a/libexec/git-notify b/libexec/git-notify
index 316336e..fda8e5b 100755
--- a/libexec/git-notify
+++ b/libexec/git-notify
@@ -41,6 +41,11 @@ use Cwd 'realpath';
41sub git_config($); 41sub git_config($);
42sub get_repos_name(); 42sub get_repos_name();
43 43
44#
45# FIXME: Turn this into a proper git-notify option.
46#
47my $from = "Git Repository <git\@nagios-plugins.org>";
48
44# some parameters you may want to change 49# some parameters you may want to change
45 50
46# sendmail's pathname 51# sendmail's pathname
@@ -325,7 +330,7 @@ sub mail_notification($$$@)
325 $subject = "[$repos_name] $subject" if ($emit_repo and $name ne $cia_address); 330 $subject = "[$repos_name] $subject" if ($emit_repo and $name ne $cia_address);
326 $subject = encode("MIME-Q",$subject); 331 $subject = encode("MIME-Q",$subject);
327 332
328 my @header = ("To: $name", "Subject: $subject", "Content-Type: $content_type"); 333 my @header = ("From: $from", "To: $name", "Subject: $subject", "Content-Type: $content_type");
329 334
330 if ($debug) 335 if ($debug)
331 { 336 {