From c853b83790da6402b7a6f4b954b9503c23dfef7e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 22 May 2010 12:30:41 +0200 Subject: [PATCH 1/1] add ability to specify cc recipients Signed-off-by: martin f. krafft --- fbi-announce.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fbi-announce.sh b/fbi-announce.sh index eb0329c..b845bd8 100755 --- a/fbi-announce.sh +++ b/fbi-announce.sh @@ -17,6 +17,7 @@ # hooks.fbi-component an optional component name # hooks.fbi-url-template the template to the gitweb URL (containing @@sha1@@) # hooks.fbi-emailsender the sender address to use in the email +# hooks.fbi-emailcc carbon-copy recipients (comma-separated) if the message # hooks.fbi-refwidth the width of references to show (default 7) # hooks.fbi-noisy include the entire log message in the announcement # hooks.fbi-msg-template the template for the message to be sent (default: @@ -44,6 +45,7 @@ url=$(git config hooks.fbi-url-template 2>/dev/null ||:) noisy=$(git config hooks.fbi-noisy 2>/dev/null || echo false) from=$(git config hooks.fbi-emailsender 2>/dev/null ||:) to="commit@commit.ganneff.de" #TODO: possibly factor out to config +cc=$(git config hooks.fbi-emailcc 2>/dev/null ||:) # mail submission client to use if [ -n "${FBI_ANNOUNCE_TO_STDOUT:-}" ]; then @@ -86,7 +88,8 @@ fi ${sendmail} <<_eom ${from:+From: ${from} }To: ${to} -Subject: Announce ${project} +${cc:+Cc: ${cc} +}Subject: Announce ${project} Message-Id: ${msg} -- 2.39.5