whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit b19d21f: accept optional -SHIP
Date Sun, 06 Mar 2016 13:49:59 GMT
Commit b19d21f8b91f83af3a36f01fba5ae2038f7d6a62:
    accept optional -SHIP


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/members/nominations.cgi                                  | +++ --
------------------------------------------------------------
5 changes: 3 additions, 2 deletions.
------------------------------------------------------------


diff --git a/www/members/nominations.cgi b/www/members/nominations.cgi
index 2af00ba..d09a5c2 100755
--- a/www/members/nominations.cgi
+++ b/www/members/nominations.cgi
@@ -22,10 +22,11 @@ archive.each do |email|
   message = IO.read(email, mode: 'rb')
   next unless message[/^Date: .*/].to_s.include? year
   subject = message[/^Subject: .*/]
-  next unless subject.upcase.include? "MEMBER NOMINATION"
+  next unless subject.upcase.include? "MEMBER"
+  next unless subject.upcase.include? "NOMINATION"
   mail = Mail.new(message)
   next if mail.subject.downcase == 'member nomination process'
-  emails << mail if mail.subject =~ /^\[?MEMBER NOMINATION\]?/i
+  emails << mail if mail.subject =~ /^\[?MEMBER(SHIP)? NOMINATION\]?/i
 end
 
 # parse nominations for names and ids

Mime
View raw message