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 43c353b  Utility to convert to shortform list id
43c353b is described below

commit 43c353b8838bd5454f512eed161f37caade8e0a4
Author: Sebb <[email protected]>
AuthorDate: Mon Jan 21 22:40:47 2019 +0000

    Utility to convert to shortform list id
---
 lib/whimsy/asf/mail.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/whimsy/asf/mail.rb b/lib/whimsy/asf/mail.rb
index 7385d87..e3548c0 100644
--- a/lib/whimsy/asf/mail.rb
+++ b/lib/whimsy/asf/mail.rb
@@ -133,6 +133,14 @@ module ASF
     def self.taken?(id)
       self.qmail_ids.include? id
     end
+
+    # Convert list name to form used in bin/.archives
+    def self.archivelistid(dom,list)
+      return "apachecon-#{list}" if dom == 'apachecon.com'
+      return list if dom == 'apache.org'
+      dom.sub(".apache.org",'-') + list
+    end
+    
   end
 
   class Person < Base

Reply via email to