Module: MailAutoconfig

Defined in:
lib/mail_autoconfig.rb,
lib/mail_autoconfig/server.rb,
lib/mail_autoconfig/version.rb,
lib/mail_autoconfig/client_config.rb,
lib/mail_autoconfig/email_address.rb

Overview

Defined Under Namespace

Classes: ClientConfig, EmailAddress, IncomingServer, OutgoingServer, Server

Constant Summary collapse

VERSION =

The version

"0.0.2"

Class Method Summary collapse

Class Method Details

.for_address(email) ⇒ MailAutoconfig::ClientConfig

Fetch the client configuration for a given email address, if any. Returns false if none found.

Parameters:

  • email (String)

    the email address to lookup

Returns:



31
32
33
# File 'lib/mail_autoconfig.rb', line 31

def self.for_address(email)
  MailAutoconfig::EmailAddress.new(email).client_config
end

.ispdb_svn_urlString

The URL to the canonical SVN repository containing the Thunderbird IPSDB

Returns:

  • (String)

    SVN repository location



23
24
25
# File 'lib/mail_autoconfig.rb', line 23

def self.ispdb_svn_url
  "http://svn.mozilla.org/mozillamessaging.com/sites/autoconfig.mozillamessaging.com/trunk"
end

.local_ispdb_pathString

The path for the locally stored Thunderbird ISPDB configurations

Returns:

  • (String)

    absolute path to the ispdb data directory



17
18
19
# File 'lib/mail_autoconfig.rb', line 17

def self.local_ispdb_path
  File.expand_path(File.join(__FILE__, "../", "../", "ispdb_data"))
end