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.4"

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:



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

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

.ispdb_github_urlString

The URL to the canonical SVN repository containing the Thunderbird IPSDB

Returns:

  • (String)

    GIT repository location



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

def self.ispdb_github_url
  "https://github.com/thunderbird/autoconfig"
end

.local_ispdb_pathString

The path for the locally stored Thunderbird ISPDB configurations

Returns:

  • (String)

    absolute path to the ispdb data directory



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

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