email_homepage 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -9
- data/README.md +2 -2
- data/lib/email_homepage.rb +3 -3
- data/lib/email_homepage/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c377e15d782328f6aef065998d32e9a1d00d389
|
4
|
+
data.tar.gz: 1fca76fafedd18d643e71273d22743dfe0f55ff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2938dc38a326efbf944d8af56cabe8d45b8f08a14cccb435aacde2ed0ea2f03c5cc269e565b3d227fb8f2907a9782066ca86bdc539d5f1159f332999e6568772
|
7
|
+
data.tar.gz: caf331e003006b614916142d63447c51f21ea43c04fe6f6a495e3654228e51d7dc554edee821f2ef487a6bc57fb42c89540bfbd20cf8a7d626599d587775e480
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -23,7 +23,7 @@ google, qq, 163, 126, sohu, sina, aliyun, yahoo, tom, yeah, 21cn, outlook, hotma
|
|
23
23
|
```
|
24
24
|
####Enterprise Mailbox
|
25
25
|
```
|
26
|
-
qq, 163, google, aliyun, sina, zoho, sohu, 189
|
26
|
+
qq, 163, google, outlook, aliyun, sina, zoho, sohu, 189
|
27
27
|
```
|
28
28
|
|
29
29
|
## Usage
|
@@ -35,4 +35,4 @@ EmailHomepage.get("my@163.com") # return "http://mail.163.com"
|
|
35
35
|
|
36
36
|
## Contributing
|
37
37
|
|
38
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
38
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/gallifreyer/email-homepage.
|
data/lib/email_homepage.rb
CHANGED
@@ -31,7 +31,7 @@ module EmailHomepage
|
|
31
31
|
elsif email_address.match /@21cn.com/
|
32
32
|
return "http://mail.21cn.com"
|
33
33
|
elsif (email_address.match /@hotmail.com/) || (email_address.match /@outlook.com/) || (email_address.match /@live.com/)
|
34
|
-
return "outlook.office.com"
|
34
|
+
return "http://outlook.office.com"
|
35
35
|
elsif email_address.match /@sogou.com/
|
36
36
|
return "http://mail.sogou.com"
|
37
37
|
elsif email_address.match /@188.com/
|
@@ -46,13 +46,13 @@ module EmailHomepage
|
|
46
46
|
domain_name = email_address.split(/@/).last
|
47
47
|
host_name = `host #{domain_name} | grep mail | awk 'NR==1{print $7}'`
|
48
48
|
if host_name.match /qq.com/
|
49
|
-
return "http://exmail.qq.com/"
|
49
|
+
return "http://exmail.qq.com/login"
|
50
50
|
elsif (host_name.match /163.com/) || (host_name.match /netease.com/)
|
51
51
|
return "http://ym.163.com/"
|
52
52
|
elsif (host_name.match /google.com/) || (host_name.match /googlemail.com/)
|
53
53
|
return "https://www.google.com/intl/zh-CN/mail/help/work.html"
|
54
54
|
elsif (host_name.match /outlook.com/) || (email_address.match /@hotmail.com/) || (email_address.match /@live.com/)
|
55
|
-
return "outlook.office.com"
|
55
|
+
return "http://outlook.office.com"
|
56
56
|
elsif host_name.match /aliyun.com/
|
57
57
|
return "https://mail.aliyun.com/"
|
58
58
|
elsif host_name.match /sina.net/
|