include Plugin
def initialize(cfg)
- @domain_root = cfg.mail_root
+ @domain_root = cfg.dovecot_mail_root
end
def describe_domain(domain)
- begin
- domain_path = get_domain_path(domain)
- return domain_path
- rescue NonexistentDomainError => e
- return "Doesn't exist: #{e.to_s}"
- end
+ return get_domain_path(domain)
end
def describe_user(user)
- begin
- user_path = get_user_path(user)
- return user_path
- rescue NonexistentUserError => e
- return "Doesn't exist: #{e.to_s}"
- end
- end
-
-
- def domain_exists(domain)
- domains = list_domains()
- return domains.include?(domain)
+ return get_user_path(user)
end