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
Module to lookup mailbox autoconfiguration according to Thunderbird spec (https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat) and guidelines (https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration)
Defined Under Namespace
Classes: ClientConfig, EmailAddress, IncomingServer, OutgoingServer, Server
Constant Summary collapse
- VERSION =
The version
"0.0.4"
Class Method Summary collapse
-
.for_address(email) ⇒ MailAutoconfig::ClientConfig
Fetch the client configuration for a given email address, if any.
-
.ispdb_github_url ⇒ String
The URL to the canonical SVN repository containing the Thunderbird IPSDB.
-
.local_ispdb_path ⇒ String
The path for the locally stored Thunderbird ISPDB configurations.
Class Method Details
.for_address(email) ⇒ MailAutoconfig::ClientConfig
Fetch the client configuration for a given email address, if any. Returns false if none found.
30 31 32 |
# File 'lib/mail_autoconfig.rb', line 30 def self.for_address(email) MailAutoconfig::EmailAddress.new(email).client_config end |
.ispdb_github_url ⇒ String
The URL to the canonical SVN repository containing the Thunderbird IPSDB
22 23 24 |
# File 'lib/mail_autoconfig.rb', line 22 def self.ispdb_github_url "https://github.com/thunderbird/autoconfig" end |
.local_ispdb_path ⇒ String
The path for the locally stored Thunderbird ISPDB configurations
16 17 18 |
# File 'lib/mail_autoconfig.rb', line 16 def self.local_ispdb_path File.(File.join(__FILE__, "../", "../", "ispdb_data")) end |