mail_daemon 0.0.8 → 0.0.9

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: 684e8ea1da51fa99792aadf676aa68154e371161
4
- data.tar.gz: 8ea4c2ea49a4b4b3601ea21ed591123509e03990
3
+ metadata.gz: e8bbe62745c7cf4dfdb277a56c9d6cf01928ec5a
4
+ data.tar.gz: 1880610827713d450f72195fe5e3bf42fccf89ea
5
5
  SHA512:
6
- metadata.gz: ecc74948196e37b832a972f6304928a5bbc0783a63785b6e1a1579fe4f7e2b81a9ee303bb75d63a08bd3339911100e179c562c6a079d00e87eb475196a40cac7
7
- data.tar.gz: cbac2d2ec474d95ef29d2cebc9f2d53a7a817f854a2a99e3214cd9c15a075eca04d72e52805cd4eb4fde3c57efba8ba123d1d9abaf2b1af996ae36d0e10ebef1
6
+ metadata.gz: 66da45cc2568ed56b63ab6c29250190b5a600c5530c9fd5455ea6a46bad5d10a33848dcda5463df92ebf31ec1bd4f60a86dc30e0ed61b24576967211fe2ccd2f
7
+ data.tar.gz: 38bdc195d5604dc7c087e0bb550890c7a2981157d373f2918009bd89fdcc775671f517d6a1e6748f2d17f555c3307fbf32a3eef4e04e51a2c93a8937632bf5c1
@@ -125,9 +125,13 @@ module MailDaemon
125
125
 
126
126
  def logout
127
127
  puts "Logging out" if @options[:debug]
128
- @imap.idle_done if @idleing
128
+ begin
129
+ @imap.idle_done if @idleing
130
+ rescue => e
131
+ puts e.message
132
+ end
129
133
  set_status(LOGGING_OFF)
130
- @imap.logout
134
+ @imap.logout unless imap.disconnected?
131
135
  set_status(LOGGED_OFF)
132
136
  end
133
137
 
@@ -1,3 +1,3 @@
1
1
  module MailDaemon
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - EmergeAdapt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-15 00:00:00.000000000 Z
11
+ date: 2016-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler