vmail 2.7.5 → 2.7.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -85,7 +85,7 @@ module Vmail
85
85
  end
86
86
  log "Selecting mailbox #{mailbox.inspect}"
87
87
  reconnect_if_necessary(30) do
88
- log @imap.select(mailbox)
88
+ log @imap.select(Net::IMAP.encode_utf7(mailbox))
89
89
  end
90
90
  log "Done"
91
91
 
@@ -156,7 +156,9 @@ module Vmail
156
156
  log 'loading mailboxes...'
157
157
  @mailboxes ||= (@imap.list("", "*") || []).
158
158
  select {|struct| struct.attr.none? {|a| a == :Noselect} }.
159
- map {|struct| struct.name}.uniq
159
+ map {|struct|
160
+ Net::IMAP.decode_utf7(struct.name)
161
+ }.uniq
160
162
  @mailboxes.delete("INBOX")
161
163
  @mailboxes.unshift("INBOX")
162
164
  log "Loaded mailboxes: #{@mailboxes.inspect}"
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '2.7.5'
2
+ VERSION = '2.7.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.5
4
+ version: 2.7.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-19 00:00:00.000000000 Z
12
+ date: 2012-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail