Module: MailAutoconfig

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

Overview

Defined Under Namespace

Classes: ClientConfig, EmailAddress, IncomingServer, OutgoingServer, Server

Constant Summary

VERSION =

The version

"0.0.1"

Class Method Summary (collapse)

Class Method Details

+ (MailAutoconfig::ClientConfig) for_address(email)

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

+ (String) ispdb_svn_url

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

+ (String) local_ispdb_path

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