From 6ab50b9dd0ebcd69912a53c837ee04e3e38c5567 Mon Sep 17 00:00:00 2001 From: Stephen Haberman Date: Tue, 24 Jun 2008 09:11:00 -0500 Subject: [PATCH] Actually commit the email tweaks this time. --- server/post-receive-email | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/server/post-receive-email b/server/post-receive-email index 23b4425..836cc6a 100644 --- a/server/post-receive-email +++ b/server/post-receive-email @@ -35,9 +35,6 @@ # hooks.envelopesender # If set then the -f option is passed to sendmail to allow the envelope # sender address to be set -# hooks.emailprefix -# All emails have their subjects prefixed with this prefix, or "[SCM]" -# if emailprefix is unset, to aid filtering # # Notes # ----- @@ -186,16 +183,12 @@ generate_email_header() # Generate header cat <<-EOF To: $recipients - Subject: ${emailprefix}$projectdesc $refname_type, $short_refname, ${change_type}d. $describe + Subject: ${emailprefix} $short_refname $refname_type ${change_type}d. $describe X-Git-Refname: $refname X-Git-Reftype: $refname_type X-Git-Oldrev: $oldrev X-Git-Newrev: $newrev - This is an automated email from the git hooks/post-receive script. It was - generated because a ref change was pushed to the repository containing - the project "$projectdesc". - The $refname_type, $short_refname has been ${change_type}d EOF } @@ -630,7 +623,7 @@ fi recipients=$(git config hooks.mailinglist) announcerecipients=$(git config hooks.announcelist) envelopesender=$(git config hooks.envelopesender) -emailprefix=$(git config hooks.emailprefix || echo '[SCM] ') +emailprefix="[$projectdesc]" debug=$(git config hooks.debug) # --- Main loop -- 2.39.5