You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/03/27 01:31:02 UTC

[whimsy] branch master updated: redirect fundraising membership change notifications to fundraising@

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  cc81800   redirect fundraising membership change notifications to fundraising@
cc81800 is described below

commit cc81800a145d7ca00dcde6334cde770e9a7281ec
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Mar 26 21:30:41 2017 -0400

    redirect fundraising membership change notifications to fundraising@
---
 www/roster/views/actions/authgroup.json.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/roster/views/actions/authgroup.json.rb b/www/roster/views/actions/authgroup.json.rb
index 558796e..b86356a 100644
--- a/www/roster/views/actions/authgroup.json.rb
+++ b/www/roster/views/actions/authgroup.json.rb
@@ -27,7 +27,9 @@ if env.password
   to = group.members
   to << person unless to.include? person
   to.delete from unless to.length == 1
-  to = to.map {|person| "#{person.public_name} <#{...@apache.org>"}
+  to = to.map do |person| 
+    "#{person.public_name} <#{...@apache.org>".untaint
+  end
 
   # replace with sending to the private@pmc list if this is a pmc owned group
   pmc = ASF::Committee.find(group.id.split('-').first)
@@ -36,6 +38,9 @@ if env.password
     to = "private@#{to}.apache.org" unless to.include? '@'
   end
 
+  # other committees
+  to = 'fundraising@apache.org' if group.id == 'fundraising'
+
   # construct email
   mail = Mail.new do
     from "#{from.public_name} <#{...@apache.org>".untaint

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].