imap-backup 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/imap/backup/account/connection.rb +7 -5
- data/lib/imap/backup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f2eb2a8f6794e4c893fb579173c2afd345cceba
|
4
|
+
data.tar.gz: 59c1dac8c7c584c6a639f8bc7281ba41c04f4c94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cc724f9533752448b20992452005c5d7e552efa293c551f13066c44a10683801ef903acd0a10bdb9e1378ae28685458bcc3898170ea7a7cc892864e27c764c5
|
7
|
+
data.tar.gz: 0a9cadebb34df76e9515a3710e51cc73dc6d23dda5e05907f1a5358cf594937c7235b13a2096497996b7e56b339d45c88d8905ae677024d70b941ee2df382998
|
@@ -38,7 +38,7 @@ module Imap::Backup::Account
|
|
38
38
|
|
39
39
|
def imap
|
40
40
|
return @imap unless @imap.nil?
|
41
|
-
options = options_for(
|
41
|
+
options = options_for(server)
|
42
42
|
Imap::Backup.logger.debug "Creating IMAP instance: #{server}, options: #{options.inspect}"
|
43
43
|
@imap = Net::IMAP.new(server, options)
|
44
44
|
Imap::Backup.logger.debug "Logging in: #{username}/#{masked_password}"
|
@@ -74,11 +74,13 @@ module Imap::Backup::Account
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
def options_for(
|
78
|
-
case
|
79
|
-
when
|
77
|
+
def options_for(server)
|
78
|
+
case server
|
79
|
+
when 'imap.gmail.com'
|
80
80
|
{:port => 993, :ssl => true}
|
81
|
-
when
|
81
|
+
when 'mail.messagingengine.com'
|
82
|
+
{:port => 993, :ssl => true}
|
83
|
+
else
|
82
84
|
{:port => 993, :ssl => true}
|
83
85
|
end
|
84
86
|
end
|
data/lib/imap/backup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imap-backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Yates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|