www-infrastructure-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject [Whimsy] Dedup e-mail list; re-order?
Date Sun, 16 Mar 2014 11:27:16 GMT
May I suggest the following change to remove duplicates from the
e-mail drop-down list?

---------------------------------------
Index: www/committers/subscribe.cgi
===================================================================
--- www/committers/subscribe.cgi    (revision 901443)
+++ www/committers/subscribe.cgi    (working copy)
@@ -53,7 +53,7 @@

 lists.sort!

-addrs = (["#{$USER}@apache.org"] + user.mail + user.alt_email)
+addrs = (["#{$USER}@apache.org"] + user.mail + user.alt_email).uniq

 _html do
   _head_ do
---------------------------------------

Also perhaps add the apache address last?
It seems likely that most people will want to subscribe with their
non-ASF address as that is usually easier to use, in which case I
suggest the following (combined) patch:

---------------------------------------
Index: www/committers/subscribe.cgi
===================================================================
--- www/committers/subscribe.cgi    (revision 901443)
+++ www/committers/subscribe.cgi    (working copy)
@@ -53,7 +53,7 @@

 lists.sort!

-addrs = (["#{$USER}@apache.org"] + user.mail + user.alt_email)
+addrs = (user.mail + user.alt_email + ["#{$USER}@apache.org"]).uniq

 _html do
   _head_ do
---------------------------------------

Mime
View raw message