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