Skip to content

Commit

Permalink
Gather list of mails that can view posts
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Sep 2, 2024
1 parent 15cc6a6 commit 0f7ead2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/whimsy/asf/mlist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ def self.members_notify_subscribers(archivers=true)
return list_filter('sub', 'apache.org', 'members-notify', archivers), File.mtime(LIST_TIME)
end

# Intended for checking who sees emails on the list
def self.sub_digest(dom, list, archivers=false)
subs = list_filter('sub', dom, list, archivers)
digs = list_filter('digest', dom, list, archivers)
if subs.nil?
subs = digs # may also be nil
elsif !digs.nil? # i.e. neither nil, so merge
subs = (subs + digs).uniq
end
return subs, File.mtime(LIST_TIME)
end

# Return an array of private@pmc subscribers (including digests) followed by the file update time
# Returns nil if the subs file does not exist
# By default does not return the standard archivers
Expand Down

0 comments on commit 0f7ead2

Please sign in to comment.