]>
gitweb.michael.orlitzky.com - mailshears.git/blob - configuration.rb
1031464a4215c32ee29c2a80e03808a0971a0751
5 USERCONF_PATH
= ENV['HOME'] +
'/.mailshears.conf.yml'
8 cfg
= self.default_configuration()
10 # Now, load the user configuration which will override the
11 # variables defined above.
13 user_config
= Config
.new(YAML
.load(File
.open(USERCONF_PATH
)))
14 cfg
.update!
(user_config
)
16 # If the user config file doesn't exist, whatever.
23 def method_missing(sym
, *args
)
24 # Replace all missing method calls with dictionary lookups.
31 def default_configuration()
34 d
['i_mean_business'] = false
36 d
['dbhost'] = 'localhost'
40 d
['dbuser'] = 'postgres'
42 d
['dbname'] = 'postfix'
44 d
['plugins'] = ['dovecot_mailstore', 'roundcube_db']
46 d
['mail_root'] = '/var/spool/mail/vhosts'
48 d
['roundcube_dbhost'] = 'localhost'
49 d
['roundcube_dbport'] = 5432
50 d
['roundcube_dbopts'] = ''
51 d
['roundcube_dbtty'] = ''
52 d
['roundcube_dbuser'] = 'postgres'
53 d
['roundcube_dbpass'] = ''
54 d
['roundcube_dbname'] = 'roundcube'