Sha256: 21d516964942ca5792176bb960ef10dd07f55bb9f4ed24109682e96dcc2ea878
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
require "nokogiri" require "faraday" require "resolv" require "mail_autoconfig/version" require "mail_autoconfig/client_config" require "mail_autoconfig/server" require "mail_autoconfig/email_address" # 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) module MailAutoconfig # The path for the locally stored Thunderbird ISPDB configurations # @return [String] absolute path to the ispdb data directory def self.local_ispdb_path File.expand_path(File.join(__FILE__, "../", "../", "ispdb_data")) end # The URL to the canonical SVN repository containing the Thunderbird IPSDB # @return [String] GIT repository location def self.ispdb_github_url "https://github.com/thunderbird/autoconfig" end # 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] def self.for_address(email) MailAutoconfig::EmailAddress.new(email).client_config end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mail_autoconfig_revived-0.0.4 | lib/mail_autoconfig.rb |
mail_autoconfig_revived-0.0.3 | lib/mail_autoconfig.rb |