module MailAutoconfig

Module to lookup mailbox autoconfiguration according to Thunderbird spec (wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat) and guidelines (developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration)

Constants

VERSION

The version

Public Class Methods

for_address(email) click to toggle source

Fetch the client configuration for a given email address, if any. Returns false if none found. @param email [String] the email address to lookup @return [MailAutoconfig::ClientConfig]

# File lib/mail_autoconfig.rb, line 31
def self.for_address(email)
  MailAutoconfig::EmailAddress.new(email).client_config
end
ispdb_svn_url() click to toggle source

The URL to the canonical SVN repository containing the Thunderbird IPSDB @return [String] SVN repository location

# 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_path() click to toggle source

The path for the locally stored Thunderbird ISPDB configurations @return [String] absolute path to the ispdb data directory

# File lib/mail_autoconfig.rb, line 17
def self.local_ispdb_path
  File.expand_path(File.join(__FILE__, "../", "../", "ispdb_data"))
end