Commit e2b4636d55390a30113f8cf15a2313fe777f0dbe:
    Duplicate email check ("cloud" version of workbench)
    git-svn-id: 
https://svn.apache.org/repos/infra/infrastructure/trunk/projects/whimsy@819498 
90ea9780-b833-de11-8433-001ec94261de


Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>

------------------------------------------------------------
www/secretary/workbench/file.cgi                             | +++ -
------------------------------------------------------------
4 changes: 3 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/secretary/workbench/file.cgi b/www/secretary/workbench/file.cgi
index 0823406..0145ee8 100755
--- a/www/secretary/workbench/file.cgi
+++ b/www/secretary/workbench/file.cgi
@@ -162,9 +162,11 @@ def check
       output << [ 'email', "#{$1}: #{$3}" ]
     elsif ! $4 or  ! $4.index('CLA')
       output << [ 'nocla', $2 ]
+    elsif email[$3.downcase]
+      output << [ 'dupemail', "#{$3}: #{name} and #{email[$3.downcase]}" ]
     end
  
-    email[$3] = name
+    email[$3.downcase] = name
 
     name.split.each do |word|
       next if word.length == 1 and word !~ /\w/

Reply via email to