mail_autoconfig_revived 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.standard.yml +2 -0
- data/.yardopts +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +80 -0
- data/LICENSE.txt +26 -0
- data/README.md +62 -0
- data/Rakefile +38 -0
- data/doc/MailAutoconfig/ClientConfig.html +1418 -0
- data/doc/MailAutoconfig/EmailAddress.html +651 -0
- data/doc/MailAutoconfig/IncomingServer.html +155 -0
- data/doc/MailAutoconfig/OutgoingServer.html +155 -0
- data/doc/MailAutoconfig/Server.html +972 -0
- data/doc/MailAutoconfig.html +428 -0
- data/doc/_index.html +182 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +497 -0
- data/doc/file.README.html +134 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +134 -0
- data/doc/js/app.js +314 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +315 -0
- data/doc/top-level-namespace.html +110 -0
- data/ispdb_data/126.com.xml +21 -0
- data/ispdb_data/163.com.xml +21 -0
- data/ispdb_data/1und1.de.xml +75 -0
- data/ispdb_data/a1.net.xml +22 -0
- data/ispdb_data/active24.com.xml +36 -0
- data/ispdb_data/alice.it.xml +30 -0
- data/ispdb_data/aol.com.xml +76 -0
- data/ispdb_data/arcor.de.xml +68 -0
- data/ispdb_data/arubapec.it.xml +34 -0
- data/ispdb_data/att.net.xml +34 -0
- data/ispdb_data/bay.wind.ne.jp.xml +28 -0
- data/ispdb_data/bb-niigata.jp.xml +22 -0
- data/ispdb_data/bell.net.xml +30 -0
- data/ispdb_data/biglobe.ne.jp.xml +23 -0
- data/ispdb_data/bigpond.com.xml +35 -0
- data/ispdb_data/bluewin.ch.xml +34 -0
- data/ispdb_data/blueyonder.co.uk.xml +38 -0
- data/ispdb_data/bol.com.br.xml +40 -0
- data/ispdb_data/broba.cc.xml +25 -0
- data/ispdb_data/btinternet.com.xml +35 -0
- data/ispdb_data/cc9.ne.jp.xml +21 -0
- data/ispdb_data/cek.ne.jp.xml +21 -0
- data/ispdb_data/centurylink.net.xml +57 -0
- data/ispdb_data/centurytel.net.xml +55 -0
- data/ispdb_data/cgl.ucsf.edu.xml +22 -0
- data/ispdb_data/charter.net.xml +34 -0
- data/ispdb_data/clio.ne.jp.xml +22 -0
- data/ispdb_data/clustermail.de.xml +58 -0
- data/ispdb_data/co1.wind.ne.jp.xml +25 -0
- data/ispdb_data/co2.wind.ne.jp.xml +25 -0
- data/ispdb_data/co3.wind.ne.jp.xml +25 -0
- data/ispdb_data/comcast.net.xml +54 -0
- data/ispdb_data/cox.net.xml +36 -0
- data/ispdb_data/cty-net.ne.jp.xml +35 -0
- data/ispdb_data/dan.wind.ne.jp.xml +28 -0
- data/ispdb_data/dd.iij4u.or.jp.xml +33 -0
- data/ispdb_data/df.eu.xml +42 -0
- data/ispdb_data/dondominio.com.xml +32 -0
- data/ispdb_data/earthlink.net.xml +35 -0
- data/ispdb_data/educa.madrid.org.xml +48 -0
- data/ispdb_data/elpasotel.net.xml +53 -0
- data/ispdb_data/email.it.xml +33 -0
- data/ispdb_data/emailsrvr.com.xml +22 -0
- data/ispdb_data/fastwebnet.it.xml +23 -0
- data/ispdb_data/francetelecom.fr.xml +35 -0
- data/ispdb_data/free.fr.xml +48 -0
- data/ispdb_data/freenet.de.xml +37 -0
- data/ispdb_data/gandi.net.xml +58 -0
- data/ispdb_data/gigahost.dk.xml +32 -0
- data/ispdb_data/gmx.com.xml +72 -0
- data/ispdb_data/gmx.net.xml +66 -0
- data/ispdb_data/go.tvm.ne.jp.xml +22 -0
- data/ispdb_data/goneo.de.xml +56 -0
- data/ispdb_data/goo.jp.xml +22 -0
- data/ispdb_data/googlemail.com.xml +79 -0
- data/ispdb_data/gransy.com.xml +62 -0
- data/ispdb_data/hal.ne.jp.xml +22 -0
- data/ispdb_data/hana.or.jp.xml +22 -0
- data/ispdb_data/hotmail.com.xml +148 -0
- data/ispdb_data/i.softbank.jp.xml +22 -0
- data/ispdb_data/ic-net.or.jp.xml +22 -0
- data/ispdb_data/iijmio-mail.jp.xml +26 -0
- data/ispdb_data/iiyama-catv.ne.jp.xml +21 -0
- data/ispdb_data/inbox.lv.xml +57 -0
- data/ispdb_data/inet-shibata.or.jp.xml +22 -0
- data/ispdb_data/internode.on.net.xml +32 -0
- data/ispdb_data/ipax.at.xml +28 -0
- data/ispdb_data/iwafune.ne.jp.xml +22 -0
- data/ispdb_data/janis.or.jp.xml +23 -0
- data/ispdb_data/jet.ne.jp.xml +37 -0
- data/ispdb_data/ji.jet.ne.jp.xml +22 -0
- data/ispdb_data/kabelmail.de.xml +43 -0
- data/ispdb_data/kelcom.net.xml +21 -0
- data/ispdb_data/kl.wind.ne.jp.xml +32 -0
- data/ispdb_data/kokuyou.ne.jp.xml +21 -0
- data/ispdb_data/kpnmail.nl.xml +69 -0
- data/ispdb_data/laposte.net.xml +37 -0
- data/ispdb_data/libero.it.xml +34 -0
- data/ispdb_data/mahoroba.ne.jp.xml +22 -0
- data/ispdb_data/mail.com.xml +248 -0
- data/ispdb_data/mail.dk.xml +30 -0
- data/ispdb_data/mail.ee.xml +54 -0
- data/ispdb_data/mail.iwafune.ne.jp.xml +22 -0
- data/ispdb_data/mail.ru.xml +72 -0
- data/ispdb_data/mail.telenor.dk.xml +121 -0
- data/ispdb_data/mail.wind.ne.jp.xml +29 -0
- data/ispdb_data/me.com.xml +24 -0
- data/ispdb_data/messagingengine.com.xml +35 -0
- data/ispdb_data/ml.murakami.ne.jp.xml +22 -0
- data/ispdb_data/mnet.ne.jp.xml +48 -0
- data/ispdb_data/mopera.net.xml +50 -0
- data/ispdb_data/mx1.tiki.ne.jp.xml +54 -0
- data/ispdb_data/nifty.com.xml +22 -0
- data/ispdb_data/nsat.jp.xml +22 -0
- data/ispdb_data/ntlworld.com.xml +38 -0
- data/ispdb_data/o2.pl.xml +47 -0
- data/ispdb_data/ocn.ne.jp.xml +23 -0
- data/ispdb_data/office365.com.xml +55 -0
- data/ispdb_data/one.com.xml +22 -0
- data/ispdb_data/one.cz.xml +29 -0
- data/ispdb_data/onet.pl.xml +55 -0
- data/ispdb_data/outlook.com.xml +54 -0
- data/ispdb_data/ovh.net.xml +32 -0
- data/ispdb_data/pal.kijimadaira.jp.xml +21 -0
- data/ispdb_data/parabox.or.jp.xml +22 -0
- data/ispdb_data/pdx.edu.xml +41 -0
- data/ispdb_data/peoplepc.com.xml +29 -0
- data/ispdb_data/po.dcn.ne.jp.xml +21 -0
- data/ispdb_data/po.wind.ne.jp.xml +28 -0
- data/ispdb_data/pobox.com.xml +53 -0
- data/ispdb_data/pop.shibata.ne.jp.xml +23 -0
- data/ispdb_data/posteo.de.xml +25 -0
- data/ispdb_data/ptd.net.xml +53 -0
- data/ispdb_data/q.com.xml +53 -0
- data/ispdb_data/qq.com.xml +21 -0
- data/ispdb_data/rambler.ru.xml +35 -0
- data/ispdb_data/rr.com.xml +30 -0
- data/ispdb_data/runestone.net.xml +26 -0
- data/ispdb_data/sakunet.ne.jp.xml +21 -0
- data/ispdb_data/sapo.pt.xml +37 -0
- data/ispdb_data/schwaz.net.xml +49 -0
- data/ispdb_data/seznam.cz.xml +32 -0
- data/ispdb_data/sfr.fr.xml +33 -0
- data/ispdb_data/sky.com.xml +35 -0
- data/ispdb_data/skynet.be.xml +35 -0
- data/ispdb_data/so.wind.ne.jp.xml +25 -0
- data/ispdb_data/strato.de.xml +43 -0
- data/ispdb_data/studenti.univr.it.xml +37 -0
- data/ispdb_data/t-online.de.xml +56 -0
- data/ispdb_data/terra.es.xml +29 -0
- data/ispdb_data/thinline.cz.xml +60 -0
- data/ispdb_data/tiki.ne.jp.xml +24 -0
- data/ispdb_data/tiscali.cz.xml +25 -0
- data/ispdb_data/tiscali.it.xml +31 -0
- data/ispdb_data/umich.edu.xml +32 -0
- data/ispdb_data/uol.com.br.xml +42 -0
- data/ispdb_data/verizon.net.xml +21 -0
- data/ispdb_data/versatel.de.xml +43 -0
- data/ispdb_data/virgin.net.xml +38 -0
- data/ispdb_data/virginmedia.com.xml +35 -0
- data/ispdb_data/vm.aikis.or.jp.xml +22 -0
- data/ispdb_data/vp.tiki.ne.jp.xml +24 -0
- data/ispdb_data/web.de.xml +55 -0
- data/ispdb_data/webhuset.no.xml +42 -0
- data/ispdb_data/websupport.sk.xml +50 -0
- data/ispdb_data/wildwestdomains.com.xml +37 -0
- data/ispdb_data/wp.pl.xml +34 -0
- data/ispdb_data/xp.wind.jp.xml +24 -0
- data/ispdb_data/xtra.co.nz.xml +22 -0
- data/ispdb_data/yahoo.co.jp.xml +22 -0
- data/ispdb_data/yahoo.com.xml +84 -0
- data/ispdb_data/yandex.ru.xml +49 -0
- data/ispdb_data/ybb.ne.jp.xml +22 -0
- data/ispdb_data/yeah.net.xml +21 -0
- data/ispdb_data/zeelandnet.nl.xml +29 -0
- data/ispdb_data/ziggo.nl.xml +46 -0
- data/ispdb_data/zoho.com.xml +62 -0
- data/lib/mail_autoconfig/client_config.rb +113 -0
- data/lib/mail_autoconfig/email_address.rb +52 -0
- data/lib/mail_autoconfig/server.rb +72 -0
- data/lib/mail_autoconfig/version.rb +4 -0
- data/lib/mail_autoconfig.rb +33 -0
- data/mail_autoconfig_revived.gemspec +25 -0
- data/test/client_config_test.rb +45 -0
- data/test/email_address_test.rb +49 -0
- data/test/examples/client_config_yahoo.xml +40 -0
- data/test/server_test.rb +89 -0
- metadata +336 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "mail_autoconfig/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "mail_autoconfig_revived"
|
7
|
+
spec.version = MailAutoconfig::VERSION
|
8
|
+
spec.authors = ["Bijan Rahnema, Dan Wentworth"]
|
9
|
+
spec.email = ["bijan@screenisland.com"]
|
10
|
+
spec.summary = "Determine configuration details for a mailbox using Mozilla's ISPDB"
|
11
|
+
spec.homepage = "https://github.com/gobijan/mail-autoconfig-revived"
|
12
|
+
spec.license = "MIT"
|
13
|
+
|
14
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(/\.gem$/) }
|
15
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
16
|
+
spec.require_paths = ["lib"]
|
17
|
+
|
18
|
+
spec.add_dependency "nokogiri", "~> 1.15"
|
19
|
+
spec.add_dependency "faraday", "~> 2.7"
|
20
|
+
spec.add_development_dependency "bundler", "~> 2.4"
|
21
|
+
spec.add_development_dependency "rake", "~> 13.1"
|
22
|
+
spec.add_development_dependency "yard", "~> 0.9"
|
23
|
+
spec.add_development_dependency "redcarpet", "~> 3.6"
|
24
|
+
spec.add_development_dependency "standard", "~> 1.32"
|
25
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "minitest/autorun"
|
2
|
+
require "mail_autoconfig"
|
3
|
+
|
4
|
+
class ClientConfigTest < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@client_config = MailAutoconfig::ClientConfig.from_file(File.expand_path(File.join(__FILE__, "../", "examples", "client_config_yahoo.xml")))
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_reads_service_name
|
10
|
+
assert_equal "Yahoo! Mail", @client_config.name
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_reads_short_name
|
14
|
+
assert_equal "Yahoo", @client_config.short_name
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_reads_provider_id
|
18
|
+
assert_equal "yahoo.com", @client_config.provider_id
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_reads_domain_aliases
|
22
|
+
assert_includes @client_config.domains, "yahoo.com"
|
23
|
+
assert_includes @client_config.domains, "yahoo.co.uk"
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_matches_valid_domains
|
27
|
+
assert @client_config.valid_for_domain?("yahoo.it")
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_does_not_match_invalid_domains
|
31
|
+
refute @client_config.valid_for_domain?("googlemail.com")
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_auto_detects_domains_from_local_files
|
35
|
+
assert_kind_of MailAutoconfig::ClientConfig, MailAutoconfig::ClientConfig.search_local_files("googlemail.com")
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_auto_detects_domains_from_local_files_with_alias
|
39
|
+
assert_kind_of MailAutoconfig::ClientConfig, MailAutoconfig::ClientConfig.search_local_files("gmail.com")
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_auto_detects_domains_from_autoconfig_domain
|
43
|
+
assert_kind_of MailAutoconfig::ClientConfig, MailAutoconfig::ClientConfig.search_autoconfig_domain("swcp.com")
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "minitest/autorun"
|
2
|
+
require "mail_autoconfig"
|
3
|
+
|
4
|
+
class EmailAddressTest < Minitest::Test
|
5
|
+
def test_gmail_domain
|
6
|
+
address = MailAutoconfig::EmailAddress.new("example@gmail.com")
|
7
|
+
assert_equal "gmail.com", address.domain
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_gmail_local_part
|
11
|
+
address = MailAutoconfig::EmailAddress.new("example@gmail.com")
|
12
|
+
assert_equal "example", address.local_part
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_gmail_mx_domains
|
16
|
+
address = MailAutoconfig::EmailAddress.new("example@gmail.com")
|
17
|
+
assert_equal "google.com", address.primary_mx_domain
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_gmail_client_config
|
21
|
+
address = MailAutoconfig::EmailAddress.new("example@gmail.com")
|
22
|
+
assert_kind_of MailAutoconfig::ClientConfig, address.client_config
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_gmail_client_config_provider_short_name
|
26
|
+
address = MailAutoconfig::EmailAddress.new("example@gmail.com")
|
27
|
+
assert_equal "GMail", address.client_config.short_name
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_atechmedia_no_config
|
31
|
+
address = MailAutoconfig::EmailAddress.new("example@atechmedia.com")
|
32
|
+
refute address.client_config
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_swcp_autoconf_config
|
36
|
+
address = MailAutoconfig::EmailAddress.new("example@swcp.com")
|
37
|
+
assert_kind_of MailAutoconfig::ClientConfig, address.client_config
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_unlikely_domain_no_config
|
41
|
+
address = MailAutoconfig::EmailAddress.new("example@veryunlikelydomain4567763332.com")
|
42
|
+
refute address.client_config
|
43
|
+
end
|
44
|
+
|
45
|
+
def test_unlikely_domain_no_primary_mx
|
46
|
+
address = MailAutoconfig::EmailAddress.new("example@veryunlikelydomain4567763332.com")
|
47
|
+
assert_nil address.primary_mx_domain
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<clientConfig version="1.1">
|
2
|
+
<emailProvider id="yahoo.com">
|
3
|
+
<domain>yahoo.com</domain>
|
4
|
+
<domain>yahoo.de</domain>
|
5
|
+
<domain>yahoo.it</domain>
|
6
|
+
<domain>yahoo.fr</domain>
|
7
|
+
<domain>yahoo.es</domain>
|
8
|
+
<domain>yahoo.co.uk</domain>
|
9
|
+
<domain>yahoo.co.nz</domain>
|
10
|
+
<domain>yahoo.com.au</domain>
|
11
|
+
<domain>yahoo.com.ar</domain>
|
12
|
+
<domain>yahoo.com.br</domain>
|
13
|
+
<domain>yahoo.com.mx</domain>
|
14
|
+
<domain>ymail.com</domain>
|
15
|
+
<domain>rocketmail.com</domain>
|
16
|
+
<displayName>Yahoo! Mail</displayName>
|
17
|
+
<displayShortName>Yahoo</displayShortName>
|
18
|
+
<incomingServer type="pop3">
|
19
|
+
<hostname>pop.mail.yahoo.com</hostname>
|
20
|
+
<port>995</port>
|
21
|
+
<socketType>SSL</socketType>
|
22
|
+
<username>%EMAILADDRESS%</username>
|
23
|
+
<authentication>password-cleartext</authentication>
|
24
|
+
</incomingServer>
|
25
|
+
<incomingServer type="imap">
|
26
|
+
<hostname>imap.mail.yahoo.com</hostname>
|
27
|
+
<port>993</port>
|
28
|
+
<socketType>SSL</socketType>
|
29
|
+
<username>%EMAILADDRESS%</username>
|
30
|
+
<authentication>password-cleartext</authentication>
|
31
|
+
</incomingServer>
|
32
|
+
<outgoingServer type="smtp">
|
33
|
+
<hostname>smtp.mail.yahoo.com</hostname>
|
34
|
+
<port>465</port>
|
35
|
+
<socketType>SSL</socketType>
|
36
|
+
<username>%EMAILADDRESS%</username>
|
37
|
+
<authentication>password-cleartext</authentication>
|
38
|
+
</outgoingServer>
|
39
|
+
</emailProvider>
|
40
|
+
</clientConfig>
|
data/test/server_test.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
require "minitest/autorun"
|
2
|
+
require "mail_autoconfig"
|
3
|
+
|
4
|
+
class ServerTest < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@client_config = MailAutoconfig::ClientConfig.from_file(File.expand_path(File.join(__FILE__, "../", "examples", "client_config_yahoo.xml")))
|
7
|
+
@client_config.email_address = MailAutoconfig::EmailAddress.new("example@gmail.com")
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_incoming_server
|
11
|
+
server = @client_config.incoming_servers.first
|
12
|
+
assert_kind_of MailAutoconfig::IncomingServer, server
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_incoming_server_is_pop3
|
16
|
+
server = @client_config.incoming_servers.first
|
17
|
+
assert_equal "pop3", server.protocol
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_incoming_server_has_hostname
|
21
|
+
server = @client_config.incoming_servers.first
|
22
|
+
assert_equal "pop.mail.yahoo.com", server.hostname
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_incoming_server_has_port
|
26
|
+
server = @client_config.incoming_servers.first
|
27
|
+
assert_equal 995, server.port
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_incoming_server_has_socket_type
|
31
|
+
server = @client_config.incoming_servers.first
|
32
|
+
assert_equal "SSL", server.socket_type
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_incoming_server_has_username_format
|
36
|
+
server = @client_config.incoming_servers.first
|
37
|
+
assert_equal "%EMAILADDRESS%", server.username_format
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_incoming_server_processes_username
|
41
|
+
server = @client_config.incoming_servers.first
|
42
|
+
assert_equal "example@gmail.com", server.username
|
43
|
+
end
|
44
|
+
|
45
|
+
def test_incoming_server_has_authentication_method
|
46
|
+
server = @client_config.incoming_servers.first
|
47
|
+
assert_equal "password-cleartext", server.authentication
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_outgoing_server
|
51
|
+
server = @client_config.outgoing_servers.first
|
52
|
+
assert_kind_of MailAutoconfig::OutgoingServer, server
|
53
|
+
end
|
54
|
+
|
55
|
+
def test_outgoing_server_is_smtp
|
56
|
+
server = @client_config.outgoing_servers.first
|
57
|
+
assert_equal "smtp", server.protocol
|
58
|
+
end
|
59
|
+
|
60
|
+
def test_outgoing_server_has_hostname
|
61
|
+
server = @client_config.outgoing_servers.first
|
62
|
+
assert_equal "smtp.mail.yahoo.com", server.hostname
|
63
|
+
end
|
64
|
+
|
65
|
+
def test_outgoing_server_has_port
|
66
|
+
server = @client_config.outgoing_servers.first
|
67
|
+
assert_equal 465, server.port
|
68
|
+
end
|
69
|
+
|
70
|
+
def test_outgoing_server_has_socket_type
|
71
|
+
server = @client_config.outgoing_servers.first
|
72
|
+
assert_equal "SSL", server.socket_type
|
73
|
+
end
|
74
|
+
|
75
|
+
def test_outgoing_server_has_username_format
|
76
|
+
server = @client_config.outgoing_servers.first
|
77
|
+
assert_equal "%EMAILADDRESS%", server.username_format
|
78
|
+
end
|
79
|
+
|
80
|
+
def test_outgoing_server_processes_username
|
81
|
+
server = @client_config.outgoing_servers.first
|
82
|
+
assert_equal "example@gmail.com", server.username
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_outgoing_server_has_authentication_method
|
86
|
+
server = @client_config.outgoing_servers.first
|
87
|
+
assert_equal "password-cleartext", server.authentication
|
88
|
+
end
|
89
|
+
end
|
metadata
ADDED
@@ -0,0 +1,336 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mail_autoconfig_revived
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bijan Rahnema, Dan Wentworth
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-11-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.7'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.4'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.4'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '13.1'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '13.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: yard
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.9'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.9'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: redcarpet
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.6'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.6'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: standard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.32'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.32'
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- bijan@screenisland.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".standard.yml"
|
120
|
+
- ".yardopts"
|
121
|
+
- Gemfile
|
122
|
+
- Gemfile.lock
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- doc/MailAutoconfig.html
|
127
|
+
- doc/MailAutoconfig/ClientConfig.html
|
128
|
+
- doc/MailAutoconfig/EmailAddress.html
|
129
|
+
- doc/MailAutoconfig/IncomingServer.html
|
130
|
+
- doc/MailAutoconfig/OutgoingServer.html
|
131
|
+
- doc/MailAutoconfig/Server.html
|
132
|
+
- doc/_index.html
|
133
|
+
- doc/class_list.html
|
134
|
+
- doc/css/common.css
|
135
|
+
- doc/css/full_list.css
|
136
|
+
- doc/css/style.css
|
137
|
+
- doc/file.README.html
|
138
|
+
- doc/file_list.html
|
139
|
+
- doc/frames.html
|
140
|
+
- doc/index.html
|
141
|
+
- doc/js/app.js
|
142
|
+
- doc/js/full_list.js
|
143
|
+
- doc/js/jquery.js
|
144
|
+
- doc/method_list.html
|
145
|
+
- doc/top-level-namespace.html
|
146
|
+
- ispdb_data/126.com.xml
|
147
|
+
- ispdb_data/163.com.xml
|
148
|
+
- ispdb_data/1und1.de.xml
|
149
|
+
- ispdb_data/a1.net.xml
|
150
|
+
- ispdb_data/active24.com.xml
|
151
|
+
- ispdb_data/alice.it.xml
|
152
|
+
- ispdb_data/aol.com.xml
|
153
|
+
- ispdb_data/arcor.de.xml
|
154
|
+
- ispdb_data/arubapec.it.xml
|
155
|
+
- ispdb_data/att.net.xml
|
156
|
+
- ispdb_data/bay.wind.ne.jp.xml
|
157
|
+
- ispdb_data/bb-niigata.jp.xml
|
158
|
+
- ispdb_data/bell.net.xml
|
159
|
+
- ispdb_data/biglobe.ne.jp.xml
|
160
|
+
- ispdb_data/bigpond.com.xml
|
161
|
+
- ispdb_data/bluewin.ch.xml
|
162
|
+
- ispdb_data/blueyonder.co.uk.xml
|
163
|
+
- ispdb_data/bol.com.br.xml
|
164
|
+
- ispdb_data/broba.cc.xml
|
165
|
+
- ispdb_data/btinternet.com.xml
|
166
|
+
- ispdb_data/cc9.ne.jp.xml
|
167
|
+
- ispdb_data/cek.ne.jp.xml
|
168
|
+
- ispdb_data/centurylink.net.xml
|
169
|
+
- ispdb_data/centurytel.net.xml
|
170
|
+
- ispdb_data/cgl.ucsf.edu.xml
|
171
|
+
- ispdb_data/charter.net.xml
|
172
|
+
- ispdb_data/clio.ne.jp.xml
|
173
|
+
- ispdb_data/clustermail.de.xml
|
174
|
+
- ispdb_data/co1.wind.ne.jp.xml
|
175
|
+
- ispdb_data/co2.wind.ne.jp.xml
|
176
|
+
- ispdb_data/co3.wind.ne.jp.xml
|
177
|
+
- ispdb_data/comcast.net.xml
|
178
|
+
- ispdb_data/cox.net.xml
|
179
|
+
- ispdb_data/cty-net.ne.jp.xml
|
180
|
+
- ispdb_data/dan.wind.ne.jp.xml
|
181
|
+
- ispdb_data/dd.iij4u.or.jp.xml
|
182
|
+
- ispdb_data/df.eu.xml
|
183
|
+
- ispdb_data/dondominio.com.xml
|
184
|
+
- ispdb_data/earthlink.net.xml
|
185
|
+
- ispdb_data/educa.madrid.org.xml
|
186
|
+
- ispdb_data/elpasotel.net.xml
|
187
|
+
- ispdb_data/email.it.xml
|
188
|
+
- ispdb_data/emailsrvr.com.xml
|
189
|
+
- ispdb_data/fastwebnet.it.xml
|
190
|
+
- ispdb_data/francetelecom.fr.xml
|
191
|
+
- ispdb_data/free.fr.xml
|
192
|
+
- ispdb_data/freenet.de.xml
|
193
|
+
- ispdb_data/gandi.net.xml
|
194
|
+
- ispdb_data/gigahost.dk.xml
|
195
|
+
- ispdb_data/gmx.com.xml
|
196
|
+
- ispdb_data/gmx.net.xml
|
197
|
+
- ispdb_data/go.tvm.ne.jp.xml
|
198
|
+
- ispdb_data/goneo.de.xml
|
199
|
+
- ispdb_data/goo.jp.xml
|
200
|
+
- ispdb_data/googlemail.com.xml
|
201
|
+
- ispdb_data/gransy.com.xml
|
202
|
+
- ispdb_data/hal.ne.jp.xml
|
203
|
+
- ispdb_data/hana.or.jp.xml
|
204
|
+
- ispdb_data/hotmail.com.xml
|
205
|
+
- ispdb_data/i.softbank.jp.xml
|
206
|
+
- ispdb_data/ic-net.or.jp.xml
|
207
|
+
- ispdb_data/iijmio-mail.jp.xml
|
208
|
+
- ispdb_data/iiyama-catv.ne.jp.xml
|
209
|
+
- ispdb_data/inbox.lv.xml
|
210
|
+
- ispdb_data/inet-shibata.or.jp.xml
|
211
|
+
- ispdb_data/internode.on.net.xml
|
212
|
+
- ispdb_data/ipax.at.xml
|
213
|
+
- ispdb_data/iwafune.ne.jp.xml
|
214
|
+
- ispdb_data/janis.or.jp.xml
|
215
|
+
- ispdb_data/jet.ne.jp.xml
|
216
|
+
- ispdb_data/ji.jet.ne.jp.xml
|
217
|
+
- ispdb_data/kabelmail.de.xml
|
218
|
+
- ispdb_data/kelcom.net.xml
|
219
|
+
- ispdb_data/kl.wind.ne.jp.xml
|
220
|
+
- ispdb_data/kokuyou.ne.jp.xml
|
221
|
+
- ispdb_data/kpnmail.nl.xml
|
222
|
+
- ispdb_data/laposte.net.xml
|
223
|
+
- ispdb_data/libero.it.xml
|
224
|
+
- ispdb_data/mahoroba.ne.jp.xml
|
225
|
+
- ispdb_data/mail.com.xml
|
226
|
+
- ispdb_data/mail.dk.xml
|
227
|
+
- ispdb_data/mail.ee.xml
|
228
|
+
- ispdb_data/mail.iwafune.ne.jp.xml
|
229
|
+
- ispdb_data/mail.ru.xml
|
230
|
+
- ispdb_data/mail.telenor.dk.xml
|
231
|
+
- ispdb_data/mail.wind.ne.jp.xml
|
232
|
+
- ispdb_data/me.com.xml
|
233
|
+
- ispdb_data/messagingengine.com.xml
|
234
|
+
- ispdb_data/ml.murakami.ne.jp.xml
|
235
|
+
- ispdb_data/mnet.ne.jp.xml
|
236
|
+
- ispdb_data/mopera.net.xml
|
237
|
+
- ispdb_data/mx1.tiki.ne.jp.xml
|
238
|
+
- ispdb_data/nifty.com.xml
|
239
|
+
- ispdb_data/nsat.jp.xml
|
240
|
+
- ispdb_data/ntlworld.com.xml
|
241
|
+
- ispdb_data/o2.pl.xml
|
242
|
+
- ispdb_data/ocn.ne.jp.xml
|
243
|
+
- ispdb_data/office365.com.xml
|
244
|
+
- ispdb_data/one.com.xml
|
245
|
+
- ispdb_data/one.cz.xml
|
246
|
+
- ispdb_data/onet.pl.xml
|
247
|
+
- ispdb_data/outlook.com.xml
|
248
|
+
- ispdb_data/ovh.net.xml
|
249
|
+
- ispdb_data/pal.kijimadaira.jp.xml
|
250
|
+
- ispdb_data/parabox.or.jp.xml
|
251
|
+
- ispdb_data/pdx.edu.xml
|
252
|
+
- ispdb_data/peoplepc.com.xml
|
253
|
+
- ispdb_data/po.dcn.ne.jp.xml
|
254
|
+
- ispdb_data/po.wind.ne.jp.xml
|
255
|
+
- ispdb_data/pobox.com.xml
|
256
|
+
- ispdb_data/pop.shibata.ne.jp.xml
|
257
|
+
- ispdb_data/posteo.de.xml
|
258
|
+
- ispdb_data/ptd.net.xml
|
259
|
+
- ispdb_data/q.com.xml
|
260
|
+
- ispdb_data/qq.com.xml
|
261
|
+
- ispdb_data/rambler.ru.xml
|
262
|
+
- ispdb_data/rr.com.xml
|
263
|
+
- ispdb_data/runestone.net.xml
|
264
|
+
- ispdb_data/sakunet.ne.jp.xml
|
265
|
+
- ispdb_data/sapo.pt.xml
|
266
|
+
- ispdb_data/schwaz.net.xml
|
267
|
+
- ispdb_data/seznam.cz.xml
|
268
|
+
- ispdb_data/sfr.fr.xml
|
269
|
+
- ispdb_data/sky.com.xml
|
270
|
+
- ispdb_data/skynet.be.xml
|
271
|
+
- ispdb_data/so.wind.ne.jp.xml
|
272
|
+
- ispdb_data/strato.de.xml
|
273
|
+
- ispdb_data/studenti.univr.it.xml
|
274
|
+
- ispdb_data/t-online.de.xml
|
275
|
+
- ispdb_data/terra.es.xml
|
276
|
+
- ispdb_data/thinline.cz.xml
|
277
|
+
- ispdb_data/tiki.ne.jp.xml
|
278
|
+
- ispdb_data/tiscali.cz.xml
|
279
|
+
- ispdb_data/tiscali.it.xml
|
280
|
+
- ispdb_data/umich.edu.xml
|
281
|
+
- ispdb_data/uol.com.br.xml
|
282
|
+
- ispdb_data/verizon.net.xml
|
283
|
+
- ispdb_data/versatel.de.xml
|
284
|
+
- ispdb_data/virgin.net.xml
|
285
|
+
- ispdb_data/virginmedia.com.xml
|
286
|
+
- ispdb_data/vm.aikis.or.jp.xml
|
287
|
+
- ispdb_data/vp.tiki.ne.jp.xml
|
288
|
+
- ispdb_data/web.de.xml
|
289
|
+
- ispdb_data/webhuset.no.xml
|
290
|
+
- ispdb_data/websupport.sk.xml
|
291
|
+
- ispdb_data/wildwestdomains.com.xml
|
292
|
+
- ispdb_data/wp.pl.xml
|
293
|
+
- ispdb_data/xp.wind.jp.xml
|
294
|
+
- ispdb_data/xtra.co.nz.xml
|
295
|
+
- ispdb_data/yahoo.co.jp.xml
|
296
|
+
- ispdb_data/yahoo.com.xml
|
297
|
+
- ispdb_data/yandex.ru.xml
|
298
|
+
- ispdb_data/ybb.ne.jp.xml
|
299
|
+
- ispdb_data/yeah.net.xml
|
300
|
+
- ispdb_data/zeelandnet.nl.xml
|
301
|
+
- ispdb_data/ziggo.nl.xml
|
302
|
+
- ispdb_data/zoho.com.xml
|
303
|
+
- lib/mail_autoconfig.rb
|
304
|
+
- lib/mail_autoconfig/client_config.rb
|
305
|
+
- lib/mail_autoconfig/email_address.rb
|
306
|
+
- lib/mail_autoconfig/server.rb
|
307
|
+
- lib/mail_autoconfig/version.rb
|
308
|
+
- mail_autoconfig_revived.gemspec
|
309
|
+
- test/client_config_test.rb
|
310
|
+
- test/email_address_test.rb
|
311
|
+
- test/examples/client_config_yahoo.xml
|
312
|
+
- test/server_test.rb
|
313
|
+
homepage: https://github.com/gobijan/mail-autoconfig-revived
|
314
|
+
licenses:
|
315
|
+
- MIT
|
316
|
+
metadata: {}
|
317
|
+
post_install_message:
|
318
|
+
rdoc_options: []
|
319
|
+
require_paths:
|
320
|
+
- lib
|
321
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
322
|
+
requirements:
|
323
|
+
- - ">="
|
324
|
+
- !ruby/object:Gem::Version
|
325
|
+
version: '0'
|
326
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
327
|
+
requirements:
|
328
|
+
- - ">="
|
329
|
+
- !ruby/object:Gem::Version
|
330
|
+
version: '0'
|
331
|
+
requirements: []
|
332
|
+
rubygems_version: 3.4.22
|
333
|
+
signing_key:
|
334
|
+
specification_version: 4
|
335
|
+
summary: Determine configuration details for a mailbox using Mozilla's ISPDB
|
336
|
+
test_files: []
|