Some ruby code written to manage an ldap directory.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
266 B

require 'SystemData'
class MailAlias < SystemData
attr_accessor :mail, :maildrop, :user
def initialize(args = {})
super(args)
@mail = args[:mail]
@maildrop = args[:maildrop]
@user = args[:user]
end
def site
@mail.sub(/.*@/, '')
end
end