This is an automated email from the ASF dual-hosted git repository.
sebb 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 5aa875f4 Detect non-ASF emails
5aa875f4 is described below
commit 5aa875f4193669848282157c45834b24671bf5c0
Author: Sebb <[email protected]>
AuthorDate: Fri Aug 30 15:26:02 2024 +0100
Detect non-ASF emails
---
www/members/subscriptions2.cgi | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/www/members/subscriptions2.cgi b/www/members/subscriptions2.cgi
index 88fc8c5e..1e49fe7b 100755
--- a/www/members/subscriptions2.cgi
+++ b/www/members/subscriptions2.cgi
@@ -63,6 +63,7 @@ _html do
) do
ldap = ASF.members
+ nonASFemails = []
members = ASF::Member.new.map {|id, _text| ASF::Person.find(id)}
ASF::Person.preload('cn', members)
maillist = ASF::Mail.list
@@ -103,7 +104,12 @@ _html do
else
_td id
end
- _td email
+ if email.end_with? '@apache.org'
+ _td email
+ else
+ _td.text_danger email
+ nonASFemails << email
+ end
if id.include? '*'
_td ''
@@ -149,6 +155,12 @@ _html do
_ "#{person.id}@apache.org, "
end
end
+ _h3_.unsublist! 'Handy List of non-ASF Emails'
+ _p do
+ nonASFemails.each do |email|
+ _ "#{email} "
+ end
+ end
end
extras = ldap - members