From: Michael Orlitzky Date: Tue, 13 Jul 2010 19:42:41 +0000 (-0400) Subject: Added the domain/account path to the output. X-Git-Tag: 0.0.1~140 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=1511b1d4bec6c53bcdb74fe60ee3b0fc4551b104;p=mailshears.git Added the domain/account path to the output. --- 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