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

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

The following commit(s) were added to refs/heads/master by this push:
       new  bbda173   eliminate duplicate cc's
bbda173 is described below

commit bbda1736560e59be391034ff5f6b8f38af142cf5
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Thu Sep 22 08:12:27 2016 -0400

    eliminate duplicate cc's
---
 www/secmail/models/message.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/secmail/models/message.rb b/www/secmail/models/message.rb
index 28a5853..84f626a 100644
--- a/www/secmail/models/message.rb
+++ b/www/secmail/models/message.rb
@@ -249,6 +249,7 @@ class Message
     self.cc.each do |addr|
       addr = Message.liberal_email_parser(addr) if addr.is_a? String
       next if to.any? {|a| a.address == addr.address}
+      next if cc.any? {|a| a.address == addr.address}
       cc << addr
     end
 

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

Reply via email to