summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/git-notify7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/git-notify b/libexec/git-notify
index 0e50229..228c7d6 100755
--- a/libexec/git-notify
+++ b/libexec/git-notify
@@ -4,6 +4,7 @@
4# 4#
5# Copyright 2005 Alexandre Julliard 5# Copyright 2005 Alexandre Julliard
6# Copyright 2009, 2013 Nagios Plugins Development Team 6# Copyright 2009, 2013 Nagios Plugins Development Team
7# Copyright 2024, 2025 Monitoring Plugins Development Team
7# 8#
8# This program is free software; you can redistribute it and/or 9# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as 10# modify it under the terms of the GNU General Public License as
@@ -452,7 +453,7 @@ sub send_commit_notice($$)
452 my ($ref,$obj) = @_; 453 my ($ref,$obj) = @_;
453 my %info = get_object_info($obj); 454 my %info = get_object_info($obj);
454 my @notice = (); 455 my @notice = ();
455 my ($url,$subject,$obj_string); 456 my ($url,$from,$subject,$obj_string);
456 457
457 if ($gitweb_url) 458 if ($gitweb_url)
458 { 459 {
@@ -518,8 +519,8 @@ sub send_commit_notice($$)
518 } 519 }
519 520
520 $subject .= truncate_str(${$info{"log"}}[0],50); 521 $subject .= truncate_str(${$info{"log"}}[0],50);
521 mail_notification("$info{'committer_name'} <$from_address>", $commitlist_address, $subject, 522 $from = encode("MIME-Q",$info{'committer_name'}) . " <$from_address>";
522 "text/plain; charset=UTF-8", @notice); 523 mail_notification($from, $commitlist_address, $subject, "text/plain; charset=UTF-8", @notice);
523} 524}
524 525
525# send a commit notice to the CIA server 526# send a commit notice to the CIA server