# filesystem, but not the database.
#
-# Needed for rm_rf.
-require 'fileutils'
+require 'mailshears'
# Load our config file.
require 'configuration'
-# And the necessary classes.
-require 'errors.rb'
-require 'exit_codes.rb'
-require 'postfixadmin_db'
-
-Configuration::PLUGINS.each do |plugin_file|
- require "plugins/#{plugin_file}"
-end
-
pgadb = PostfixadminDb.new(Configuration::DBHOST,
Configuration::DBPORT,
Configuration::DBOPTS,
--- /dev/null
+# Load the rest of the code we'll use.
+
+# And the necessary classes.
+require 'mailshears/errors.rb'
+require 'mailshears/exit_codes.rb'
+require 'mailshears/postfixadmin_db'
+
+Configuration::PLUGINS.each do |plugin_file|
+ require "mailshears/plugins/#{plugin_file}"
+end
+
-require 'errors'
-require 'filesystem'
-require 'mailstore'
-require 'plugin'
+# Needed for rm_rf.
+require 'fileutils'
+
+require 'mailshears/errors'
+require 'mailshears/filesystem'
+require 'mailshears/mailstore'
+require 'mailshears/plugin'
class DovecotMailstore < Mailstore