]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/rm_dummy_runner.rb
Remove a superclass from DovecotMv that no longer exists.
[mailshears.git] / lib / rm / rm_dummy_runner.rb
index 9bdd13f5f47fb2dc1b71e7c012545c47c08e7e4a..477608f8e77318e535ef671eca0bb7a629a5d0ad 100644 (file)
@@ -6,14 +6,11 @@ class RmDummyRunner
   def run(plugin, *targets)
     targets.each do |target|
       if target.include?('@') then
-        puts "Would remove account: #{target}"
-        # TODO: remove from postfixadmin as well.
+        user_description = plugin.describe_user(target)
+        report(plugin, "Would remove user: #{target} (#{user_description})")
       else
-        usernames = plugin.get_domain_usernames(target)
-        usernames.each { |u| run(plugin, u) }
-
-        puts "Would remove domain: #{target}"
-        # TODO: remove from postfixadmin as well.
+        domain_description = plugin.describe_domain(target)
+        report(plugin, "Would remove domain: #{target} (#{domain_description})")
       end
     end