From 1511b1d4bec6c53bcdb74fe60ee3b0fc4551b104 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 13 Jul 2010 15:42:41 -0400 Subject: [PATCH] Added the domain/account path to the output. --- bin/mailshears | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/mailshears b/bin/mailshears index afc4301..06347fb 100755 --- a/bin/mailshears +++ b/bin/mailshears @@ -93,7 +93,6 @@ acct_difference = fs_accts - db_accts # Don't output any unnecessary junk. Cron might mail it to someone. if dom_difference.size > 0 or acct_difference.size > 0 - # The header that we output before the list of accounts. # Just the path of this script, and the current time. header = "#{$0}, " @@ -109,7 +108,14 @@ if dom_difference.size > 0 or acct_difference.size > 0 puts header puts '-' * header.size # Underline the header. - puts dom_difference - puts acct_difference + + dom_difference.each do |domain| + puts domain + " (#{dms.get_domain_path(domain)})" + end + + acct_difference.each do |account| + puts account + " (#{dms.get_account_path(account)})" + end + puts "" end -- 2.43.2