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 +4 -4
- data/lib/onlyoffice_iredmail_helper.rb +3 -0
- data/lib/onlyoffice_iredmail_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e74825ff4765edfd4366de74a790cba2cc02da5af7d8c0ebc837306fd6aff2b
|
4
|
+
data.tar.gz: 713bf750990f35c858ea73e6c79919dbc66952a39943140eb35b164fab213395
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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.
|
219
|
+
rubygems_version: 3.1.4
|
220
220
|
signing_key:
|
221
221
|
specification_version: 4
|
222
222
|
summary: ONLYOFFICE Helper Gem for iRedMail
|