vmail 1.9.6 → 1.9.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,7 +63,7 @@ module Vmail
63
63
 
64
64
  def close
65
65
  log "Closing connection"
66
- Timeout::timeout(10) do
66
+ Timeout::timeout(5) do
67
67
  @imap.close rescue Net::IMAP::BadResponseError
68
68
  @imap.disconnect rescue IOError
69
69
  end
@@ -75,7 +75,7 @@ module Vmail
75
75
  mailbox = mailbox_aliases[mailbox]
76
76
  end
77
77
  log "Selecting mailbox #{mailbox.inspect}"
78
- reconnect_if_necessary(15) do
78
+ reconnect_if_necessary(30) do
79
79
  log @imap.select(mailbox)
80
80
  end
81
81
  log "Done"
@@ -58,7 +58,10 @@ module Vmail
58
58
  elsif address_struct.name
59
59
  "#{Mail::Encodings.unquote_and_convert_to(address_struct.name, 'UTF-8')} <#{[address_struct.mailbox, address_struct.host].join('@')}>"
60
60
  else
61
- [Mail::Encodings.unquote_and_convert_to(address_struct.mailbox, 'UTF-8'), Mail::Encodings.unquote_and_convert_to(address_struct.host, 'UTF-8')].join('@')
61
+ [
62
+ (address_struct.mailbox ? Mail::Encodings.unquote_and_convert_to(address_struct.mailbox, 'UTF-8') : ""),
63
+ (address_struct.host ? Mail::Encodings.unquote_and_convert_to(address_struct.host, 'UTF-8'): "")
64
+ ].join('@')
62
65
  end
63
66
 
64
67
  end
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '1.9.6'
2
+ VERSION = '1.9.7'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.9.6
5
+ version: 1.9.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi