From 794f3ca19624e4e35fcc17f5a4f61fe939b6b502 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 5 Nov 2009 01:20:26 +0100 Subject: [PATCH] taskd/mail.sh: Unsubscribe instructions in email footer. --- taskd/mail.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/taskd/mail.sh b/taskd/mail.sh index 8260613..5ac1334 100755 --- a/taskd/mail.sh +++ b/taskd/mail.sh @@ -15,6 +15,7 @@ # of description. # * Load shlib. # * Default subject prefix is site name. +# * Unsubscribe instructions in email footer. # ================= # # This hook is stored in the contrib/hooks directory. Your distribution @@ -226,7 +227,8 @@ generate_email_footer() cat <<-EOF - hooks/post-receive + $cfg_name automatic notification. Contact project admin $projectowner if you want + to unsubscribe, or site admin $cfg_admin if you receive no reply. --${SPACE} $projectboth EOF @@ -683,6 +685,7 @@ projectname="$4" if [ -n "$projectname" ]; then projectname="$projectname.git" projectboth="$projectname (\"$projectdesc\")" + projectowner="$(config_get owner)" else projectname="$projectdesc" projectboth="$projectdesc" -- 2.11.4.GIT