Class: Mailman::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/mailman/configuration.rb

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (boolean) graceful_death

rather than dropping dead immediately. Currently only works with POP3 connections.



35
36
37
# File 'lib/mailman/configuration.rb', line 35

def graceful_death
  @graceful_death
end

- (boolean) ignore_stdin



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

def ignore_stdin
  @ignore_stdin
end

- (Hash) imap



11
12
13
# File 'lib/mailman/configuration.rb', line 11

def imap
  @imap
end

- (Logger) logger



5
6
7
# File 'lib/mailman/configuration.rb', line 5

def logger
  @logger
end

- (String) maildir



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

def maildir
  @maildir
end

- (Fixnum) poll_interval



15
16
17
# File 'lib/mailman/configuration.rb', line 15

def poll_interval
  @poll_interval
end

- (Hash) pop3



8
9
10
# File 'lib/mailman/configuration.rb', line 8

def pop3
  @pop3
end

- (String) rails_root



26
27
28
# File 'lib/mailman/configuration.rb', line 26

def rails_root
  @rails_root
end

- (boolean) watch_maildir



22
23
24
# File 'lib/mailman/configuration.rb', line 22

def watch_maildir
  @watch_maildir
end

Class Method Details

+ (Object) from_hash(options)



57
58
59
60
61
62
63
# File 'lib/mailman/configuration.rb', line 57

def self.from_hash(options)
  config = self.new
  options.each do |key, value|
    config.send "#{key}=", value
  end
  config
end

Instance Method Details

- (Object) middleware



37
38
39
# File 'lib/mailman/configuration.rb', line 37

def middleware
  @middleware ||= Mailman::Middleware.new
end