# Load the default config file first, and let the user override it.
require 'default_configuration'
+userconf_path = ENV['HOME'] + '/.mailshears.conf'
begin
- # Try to load the user's configuration file.
- userconf_path = ENV['HOME'] + '/.mailshears.conf'
+ # Don't crash if it doesn't exist. Maybe he likes the defaults?
require userconf_path
-rescue
- puts 'No user configuration file (~/.mailshears.conf) found.'
- puts 'Continuing...'
+rescue LoadError
end
Configuration::PLUGINS.each do |plugin_file|