]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/default_configuration.rb
Switch from constants to variables in the Configuration module. This should keep...
[mailshears.git] / lib / default_configuration.rb
index 1d0aa7f82b34b5721778d47df337baa678a02cfb..fa20472a76cc53fa629cb57c26ce74a07929336c 100644 (file)
@@ -1,33 +1,38 @@
 module Configuration
-  # Where your mailboxes are stored. The exact format could
-  # theoretically change in the future, but for now, the
-  # DovecotMailstore class is going to assume that the mailboxes are
-  # stored beneath this directory in <domain>/<username> format.
-  MAIL_ROOT = '/var/spool/mail/vhosts'
+  # Really delete domains/accounts, or just find them? This parameter
+  # could also be called, "i_trust_mailshears_not_to_do_anything_bad".
+  i_mean_business = false
 
+  # How to connect to your user/domain database. At the moment, this
+  # is PostfixAdmin.
+  #
   # These should be obvious except for the ones that aren't. You can
   # identify the non-obvious ones by my having left them blank.
-  DBHOST = 'localhost'
-  DBPORT = 5432
-  DBOPTS = ''
-  DBTTY = ''
-  DBUSER = 'postgres'
-  DBPASS = ''
-  DBNAME = 'postfix'
+  dbhost = 'localhost'
+  dbport = 5432
+  dbopts = ''
+  dbtty = ''
+  dbuser = 'postgres'
+  dbpass = ''
+  dbname = 'postfix'
 
-  # Really delete domains/accounts, or just find them? This parameter
-  # could also be called, "I_TRUST_MAILSHEARS_NOT_TO_DO_ANYTHING_BAD".
-  I_MEAN_BUSINESS = false
+  # This defines which plugins we'll use. The rest of the
+  # configuration is plugin-specific.
+  plugins = ['dovecot_mailstore', 'roundcube_db']
 
-  PLUGINS = ['dovecot_mailstore', 'roundcube_db']
+  # Where your mailboxes are stored. The exact format could
+  # theoretically change in the future, but for now, the
+  # DovecotMailstore class is going to assume that the mailboxes are
+  # stored beneath this directory in <domain>/<username> format.
+  mail_root = '/var/spool/mail/vhosts'
 
   # Roundcube-specific configuration.
-  ROUNDCUBE_DBHOST = 'localhost'
-  ROUNDCUBE_DBPORT = 5432
-  ROUNDCUBE_DBOPTS = ''
-  ROUNDCUBE_DBTTY = ''
-  ROUNDCUBE_DBUSER = 'postgres'
-  ROUNDCUBE_DBPASS = ''
-  ROUNDCUBE_DBNAME = 'roundcube'
+  roundcube_dbhost = 'localhost'
+  roundcube_dbport = 5432
+  roundcube_dbopts = ''
+  roundcube_dbtty = ''
+  roundcube_dbuser = 'postgres'
+  roundcube_dbpass = ''
+  roundcube_dbname = 'roundcube'
 
 end