From be45010336908b6b18ca74fecb62332999e4cea0 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:06:11 +0200 Subject: git-notify: Use another From: address Send emails from Git Repository . We should turn this into a proper command line option. 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'; sub git_config($); sub get_repos_name(); +# +# FIXME: Turn this into a proper git-notify option. +# +my $from = "Git Repository "; + # some parameters you may want to change # sendmail's pathname @@ -325,7 +330,7 @@ sub mail_notification($$$@) $subject = "[$repos_name] $subject" if ($emit_repo and $name ne $cia_address); $subject = encode("MIME-Q",$subject); - my @header = ("To: $name", "Subject: $subject", "Content-Type: $content_type"); + my @header = ("From: $from", "To: $name", "Subject: $subject", "Content-Type: $content_type"); if ($debug) { -- cgit v0.10-9-g596f