Way too many changes to mention. The 'rm' mode works now.
[mailshears.git] / bin / mailshears
index 09735ba26ba7087711a8b81605483a0b00d9ea4b..37d660175dff6b1f055c73d3320b3031a04a2e06 100755 (executable)
@@ -57,6 +57,9 @@ cfg.plugins.each do |plugin_file|
   require "#{mode_name}/plugins/#{plugin_file}"
 end
 
+# Always enabled, for now.
+require "#{mode_name}/plugins/postfixadmin_db"
+
 # And the runners.
 require "#{mode_name}/#{mode_name}_runner"
 require "#{mode_name}/#{mode_name}_dummy_runner"
@@ -102,10 +105,10 @@ else
   dummy_runner_class = PruneDummyRunner
 end
 
+puts make_header(plugin_class.to_s())
 
 plugin_class.includers.each do |plugin_class_includer|
   plugin = plugin_class_includer.new()
-  puts make_header(plugin_class.to_s())
 
   if cfg.i_mean_business then
     runner = runner_class.new()
@@ -124,15 +127,6 @@ end
 
 
 Kernel.exit(0)
-pgadb = PostfixadminDb.new(cfg.dbhost,
-                           cfg.dbport,
-                           cfg.dbopts,
-                           cfg.dbtty,
-                           cfg.dbname,
-                           cfg.dbuser,
-                           cfg.dbpass)
-
-
 
 
 begin