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 ad21a28: fetch mail list once, use multiple times
Date Mon, 22 Feb 2016 02:00:55 GMT
Commit ad21a28488e48ce17b2682d155ecdf1fe2e2eaa6:
    fetch mail list once, use multiple times


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

------------------------------------------------------------
www/board/subscriptions.cgi                                  | +++ --
------------------------------------------------------------
5 changes: 3 additions, 2 deletions.
------------------------------------------------------------


diff --git a/www/board/subscriptions.cgi b/www/board/subscriptions.cgi
index a9212fa..ff63364 100755
--- a/www/board/subscriptions.cgi
+++ b/www/board/subscriptions.cgi
@@ -62,10 +62,11 @@ _html do
     end
 
     ids = []
+    maillist = ASF::Mail.list
 
     File.readlines(SUBSCRIPTIONS).each do |line|
-      person = ASF::Mail.list[line.downcase.strip]
-      person ||= ASF::Mail.list[line.downcase.strip.sub(/\+\w+@/,'@')]
+      person = maillist[line.downcase.strip]
+      person ||= maillist[line.downcase.strip.sub(/\+\w+@/,'@')]
       if person
         id = person.id
         id = '*notinavail*' if id == 'notinavail'

Mime
View raw message