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/04/02 13:59:21 UTC

[whimsy] branch master updated: drop members@ from the replies

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  a95cb97   drop members@ from the replies
a95cb97 is described below

commit a95cb97d029268059db068e991196f4e7d632720
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Apr 2 09:59:11 2017 -0400

    drop members@ from the replies
---
 www/secmail/views/actions/memapp.json.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/www/secmail/views/actions/memapp.json.rb b/www/secmail/views/actions/memapp.json.rb
index 7415625..89d5c57 100644
--- a/www/secmail/views/actions/memapp.json.rb
+++ b/www/secmail/views/actions/memapp.json.rb
@@ -242,6 +242,11 @@ task "email #@email" do
     body: template('mem.erb')
   )
 
+  # drop members@ from the replies
+  if mail.cc.include? 'members@apache.org'
+    mail.cc = mail['cc'].value.select {|name| name !~ /\bmembers@apache.org\b/}
+  end
+
   # echo email
   form do
     _message mail.to_s

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