diff options
-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 | { |