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
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
- VERSION =
The version
"0.0.1"
Class Method Summary (collapse)
-
+ (MailAutoconfig::ClientConfig) for_address(email)
Fetch the client configuration for a given email address, if any.
-
+ (String) ispdb_svn_url
The URL to the canonical SVN repository containing the Thunderbird IPSDB.
-
+ (String) local_ispdb_path
The path for the locally stored Thunderbird ISPDB configurations.
Class Method Details
+ (MailAutoconfig::ClientConfig) for_address(email)
Fetch the client configuration for a given email address, if any. Returns false if none found.
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
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
17 18 19 |
# File 'lib/mail_autoconfig.rb', line 17 def self.local_ispdb_path File.(File.join(__FILE__, "../", "../", "ispdb_data")) end |