require 'common/plugin'
require 'pg'
-module PostfixadminDbPlugin
- # Code that all PostfixadminDb plugins (Prune, Rm, Mv...) will
+module PostfixadminPlugin
+ # Code that all Postfixadmin plugins (Prune, Rm, Mv...) will
# share. That is, we implement the Plugin interface.
include Plugin
def initialize()
cfg = Configuration.new()
- @db_host = cfg.dbhost
- @db_port = cfg.dbport
- @db_opts = cfg.dbopts
- @db_tty = cfg.dbtty
- @db_name = cfg.dbname
- @db_user = cfg.dbuser
- @db_pass = cfg.dbpass
+ @db_host = cfg.postfixadmin_dbhost
+ @db_port = cfg.postfixadmin_dbport
+ @db_opts = cfg.postfixadmin_dbopts
+ @db_tty = cfg.postfixadmin_dbtty
+ @db_name = cfg.postfixadmin_dbname
+ @db_user = cfg.postfixadmin_dbuser
+ @db_pass = cfg.postfixadmin_dbpass
end