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 fa03354c Duh - elsif doesn't work here any longer
fa03354c is described below

commit fa03354ca54bca22d63c99b524095aaae7a6fa8a
Author: Sebb <[email protected]>
AuthorDate: Sun Mar 10 11:38:26 2024 +0000

    Duh - elsif doesn't work here any longer
---
 www/members/invitations.cgi | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/www/members/invitations.cgi b/www/members/invitations.cgi
index 3b7391b7..6d5561eb 100755
--- a/www/members/invitations.cgi
+++ b/www/members/invitations.cgi
@@ -54,6 +54,7 @@ def setup_data
       # Note: occasionally someone will forget to copy members@, in which case 
the email
       # may be sent as a reply
       if v[:Subject] =~ /^(Re: )?Invitation to join The Apache Software 
Foundation Membership/
+        pfx = $1
         to = Mail::AddressList.new(v[:To])
         to.addresses.each do |add|
           addr = add.address
@@ -61,10 +62,11 @@ def setup_data
           invites[:emails][addr] = link
           invites[:names][add.display_name] = link if add.display_name
         end
-      elsif v[:Subject] =~ /^Re: Invitation to join The Apache Software 
Foundation Membership/
-        add = Mail::Address.new(v[:From])
-        replies[:emails][add.address] = link
-        replies[:names][add.display_name] = link if add.display_name
+        if pfx # it's a reply
+          add = Mail::Address.new(v[:From])
+          replies[:emails][add.address] = link
+          replies[:names][add.display_name] = link if add.display_name
+        end
       end
     end
   end

Reply via email to