onlyoffice_iredmail_helper 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 9871762acd906ea08deb24f3f27ad70a705a77381dc78efe717a2c3fa543a644
4
- data.tar.gz: d6ec13250ef152c8bc686947358c328b60c3124ccc94172134a58840c2d9bf33
3
+ metadata.gz: 0e74825ff4765edfd4366de74a790cba2cc02da5af7d8c0ebc837306fd6aff2b
4
+ data.tar.gz: 713bf750990f35c858ea73e6c79919dbc66952a39943140eb35b164fab213395
5
5
  SHA512:
6
- metadata.gz: 0b9640e4a34616eba140e99dd20f1e25438fbc1a5c09cce770b25f9a5d713af922e965ee8f50453f25d5ec81a306d06ba0b53cad193fe853680970b1ca7239e2
7
- data.tar.gz: e0cb81aaca023ab6c20f9e3640b27ec4d5ae56140b68ba7010b33902f35ecb3a4265674771d7d86e3185834d307978e9d8fc63caa4fd05ea01c60733d036a8ef
6
+ metadata.gz: c89ff66486363120c32aff5c92c5f9729caf7ab0a897605bfa66404aee6057e00bc3de70f9a9aeea75b5a28eba42c777db55521a4ed9de3a183fad97c66e1bb9
7
+ data.tar.gz: 35a00878f246327b96bdc8300b59126c0b0c93e87c9df83143ea964c902b1e3c05e9bd63736d959ca0d230450f273d32d861a171fa254c85c3b4c32c28f6f897
@@ -41,6 +41,8 @@ module OnlyofficeIredmailHelper
41
41
  # Login to email via IMAP
42
42
  # @return [nil]
43
43
  def login
44
+ return if @imap
45
+
44
46
  @imap = Net::IMAP.new(@domainname)
45
47
  @imap.authenticate('LOGIN', @username, @password)
46
48
  end
@@ -179,6 +181,7 @@ module OnlyofficeIredmailHelper
179
181
  @imap.close
180
182
  @imap.logout
181
183
  @imap.disconnect
184
+ @imap = nil
182
185
  end
183
186
 
184
187
  # Move out message to `checked` directory
@@ -2,5 +2,5 @@
2
2
 
3
3
  module OnlyofficeIredmailHelper
4
4
  # [String] version of gem
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_iredmail_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  - !ruby/object:Gem::Version
217
217
  version: '0'
218
218
  requirements: []
219
- rubygems_version: 3.1.2
219
+ rubygems_version: 3.1.4
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: ONLYOFFICE Helper Gem for iRedMail