whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: drop members@ from the replies
Date Sun, 02 Apr 2017 13:59:21 GMT
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 <rubys@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" <commits@whimsical.apache.org>'].

Mime
View raw message