From ca82d7f3afbb7fabaf2a832c6ebd8fa8b4b6624f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 6 Jan 2011 12:03:30 -0500 Subject: [PATCH] Make describe_domain work (for DovecotMailstore) even after a domain is removed. --- src/plugins/dovecot_mailstore.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/plugins/dovecot_mailstore.rb b/src/plugins/dovecot_mailstore.rb index d253c32..40b2019 100644 --- a/src/plugins/dovecot_mailstore.rb +++ b/src/plugins/dovecot_mailstore.rb @@ -6,13 +6,18 @@ require 'src/plugin' class DovecotMailstore < Mailstore include Plugin - + def initialize @domain_root = Configuration::MAIL_ROOT end def describe_domain(domain) - return get_domain_path(domain) + begin + domain_path = get_domain_path(domain) + return domain_path + rescue NonexistentDomainError => e + return e.message + end end def describe_account(account) -- 2.44.2