Module: Mailman

Defined in:
lib/mailman.rb,
lib/mailman/cli.rb,
lib/mailman/route.rb,
lib/mailman/router.rb,
lib/mailman/version.rb,
lib/mailman/receiver.rb,
lib/mailman/middleware.rb,
lib/mailman/application.rb,
lib/mailman/receiver/pop3.rb,
lib/mailman/receiver/imap.rb,
lib/mailman/configuration.rb,
lib/mailman/route/matcher.rb,
lib/mailman/route/condition.rb,
lib/mailman/route/conditions.rb,
lib/mailman/message_processor.rb,
lib/mailman/route/regexp_matcher.rb,
lib/mailman/route/string_matcher.rb

Defined Under Namespace

Modules: Receiver Classes: Application, CLI, Configuration, MessageProcessor, Middleware, Route, Router

Constant Summary

VERSION =
'0.7.2'
IS_WINDOWS =
(RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i)

Class Method Summary (collapse)

Class Method Details

+ (Configuration) config



19
20
21
# File 'lib/mailman.rb', line 19

def self.config
  @config ||= Configuration.new
end

+ (Object) logger

Shortcut for the logger object



29
30
31
# File 'lib/mailman.rb', line 29

def self.logger
  Mailman.config.logger
end

+ (Object) reset_config!

Resets the app config (useful for testing).



24
25
26
# File 'lib/mailman.rb', line 24

def self.reset_config!
  @config = Configuration.new
end