diff options
| author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-30 00:06:11 +0200 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-30 00:06:11 +0200 |
| commit | be45010336908b6b18ca74fecb62332999e4cea0 (patch) | |
| tree | d359f4e79043975fb7a0f99953e7c170d6573bea /libexec | |
| parent | 9beb250cf9eed05ba1139b202bf2412b07978ef5 (diff) | |
| download | site-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')
| -rwxr-xr-x | libexec/git-notify | 7 |
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'; | |||
| 41 | sub git_config($); | 41 | sub git_config($); |
| 42 | sub get_repos_name(); | 42 | sub get_repos_name(); |
| 43 | 43 | ||
| 44 | # | ||
| 45 | # FIXME: Turn this into a proper git-notify option. | ||
| 46 | # | ||
| 47 | my $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 | { |
