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 f343ff70 Don't depend on accessing LDAP
f343ff70 is described below

commit f343ff708ffda64b6271beb27989b77383a0f599
Author: Sebb <s...@apache.org>
AuthorDate: Sun Mar 3 09:39:46 2024 +0000

    Don't depend on accessing LDAP
---
 tools/testmail.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/testmail.rb b/tools/testmail.rb
index 33680cd1..bf8e13ea 100755
--- a/tools/testmail.rb
+++ b/tools/testmail.rb
@@ -13,13 +13,13 @@ $LOAD_PATH.unshift '/srv/whimsy/lib'
 require 'whimsy/asf'
 require 'mail'
 require 'etc'
-person = ASF::Person.find(ARGV.first || ENV['USER'] || Etc.getlogin)
+userid = ARGV.first || ENV['USER'] || Etc.getlogin
 
 ASF::Mail.configure
 
 mail = Mail.new do
-  from "#{person.public_name} <#{person.id}@apache.org>"
-  to "#{person.public_name} <#{person.mail.first}>"
+  from "#{userid} <#{userid}@apache.org>"
+  to "#{userid}@apache.org>"
   subject 'test mail'
   body "sent from #{`hostname`}"
 end

Reply via email to