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 7cf58fa Give access to cannot unsub list names
7cf58fa is described below
commit 7cf58fa7a9af17615dd31eed8a296df717014e15
Author: Sebb <[email protected]>
AuthorDate: Fri Mar 18 11:41:53 2022 +0000
Give access to cannot unsub list names
---
lib/whimsy/asf/mail.rb | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lib/whimsy/asf/mail.rb b/lib/whimsy/asf/mail.rb
index b3bb3be..0219bb1 100644
--- a/lib/whimsy/asf/mail.rb
+++ b/lib/whimsy/asf/mail.rb
@@ -52,6 +52,11 @@ module ASF
@auto[:disallowed]
end
+ def self.cannot_unsub
+ self._load_auto()
+ @auto[:cannotunsubscribe]
+ end
+
def self.committers_allowed
self._load_auto()
@auto[:committers]
@@ -171,6 +176,12 @@ module ASF
self.qmail_ids.include? id
end
+ # Convert [email protected] to host-list (listkey) style
+ def self.listdom2listkey(listdom)
+ list, dom = listdom.split('@')
+ self.archivelistid(dom, list)
+ end
+
# Convert list name to form used in mail_list_autosub.yml
def self.archivelistid(dom, list)
return "apachecon-#{list}" if dom == 'apachecon.com'