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 ad26e55  add a warning if a non apache.org email address is found
ad26e55 is described below

commit ad26e5571b6c15ed01b309ac6de9b80404727727
Author: Sam Ruby <[email protected]>
AuthorDate: Tue Jul 4 22:44:06 2017 -0400

    add a warning if a non apache.org email address is found
---
 lib/whimsy/asf/agenda/special.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/whimsy/asf/agenda/special.rb b/lib/whimsy/asf/agenda/special.rb
index 12844c3..812e067 100644
--- a/lib/whimsy/asf/agenda/special.rb
+++ b/lib/whimsy/asf/agenda/special.rb
@@ -125,6 +125,12 @@ class ASF::Board::Agenda
           else
             attrs['warnings'] ||= ['Chair not found in resolution'] 
           end
+
+          if text.scan(/[<(][-.\w]+@(?:[-\w]+\.)+\w+[>)]/).
+            any? {|email| not email.include? 'apache.org'}
+          then
+            attrs['warnings'] ||= ['non apache.org email address found'] 
+          end
         end
       end
 

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to