+ # Initialize a {Configuration} object with the config file at *path*.
+ #
+ # @param path [String] the path to the configuration file to
+ # load. We check for a file named "mailshears.conf.yml" in the
+ # user's XDG configuration directory by default.
+ #
+ def initialize(path = nil)
+ if path.nil? then
+ # The default path to the user's configuration file.
+ path = ENV['HOME'] + '/.config'
+ if ENV.has_key?('XDG_CONFIG_HOME') then
+ path = ENV['XDG_CONFIG_HOME']
+ end
+ path += '/mailshears/mailshears.conf.yml'
+ end
+