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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28c9159f1439c7b12a52c7149284c714218cef47
4
- data.tar.gz: ff1ed3afecd0e1753734bc2bc8f6bd0ddd42d063
3
+ metadata.gz: 8f2eb2a8f6794e4c893fb579173c2afd345cceba
4
+ data.tar.gz: 59c1dac8c7c584c6a639f8bc7281ba41c04f4c94
5
5
  SHA512:
6
- metadata.gz: fd6d123a800c8e1cfea9897c3f7edd70b5be9e7ad36581ae9aeb90e129d52dbc058372880cb677db40637e5ba4d68015220f8d6ca0c45e7087b1e748568aaae7
7
- data.tar.gz: b52ce2115eae0a0bc175fe2264eb9842a8b535f16d6a5237e9df4f250cedcc5e4b4fe26ded3e06a43f0f5b4636b839bcf91c983f217efaf2b05e4549bb122507
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(username)
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(username)
78
- case username
79
- when /@gmail\.com/
77
+ def options_for(server)
78
+ case server
79
+ when 'imap.gmail.com'
80
80
  {:port => 993, :ssl => true}
81
- when /@fastmail\.fm/
81
+ when 'mail.messagingengine.com'
82
+ {:port => 993, :ssl => true}
83
+ else
82
84
  {:port => 993, :ssl => true}
83
85
  end
84
86
  end
@@ -2,7 +2,7 @@ module Imap
2
2
  module Backup
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- REVISION = 6
5
+ REVISION = 7
6
6
  VERSION = [MAJOR, MINOR, REVISION].map(&:to_s).join('.')
7
7
  end
8
8
  end
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.6
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-18 00:00:00.000000000 Z
11
+ date: 2013-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake