Module: Zimbra::DistributionListService::Parser

Defined in:
lib/zimbra/distribution_list.rb

Overview

Doc Placeholder

Class Method Summary collapse

Class Method Details

.get_members(node) ⇒ Object



136
137
138
139
140
141
142
143
# File 'lib/zimbra/distribution_list.rb', line 136

def get_members(node)
  # Return this if we are getting here by find_by_*
  return (node/"//n2:dlm").map(&:to_s).compact if (node/"//n2:dlm").any?

  # Return this if we get here by DirectorySearch
  fwds = A.read(node, 'zimbraMailForwardingAddress')
  fwds.is_a?(Array) ? fwds.map(&:to_s).compact : [fwds].compact
end